Skip to content

Commit

Permalink
Ensure initialization of proc_entry
Browse files Browse the repository at this point in the history
  • Loading branch information
saagarjha committed Mar 8, 2020
1 parent cd2cff1 commit e43c390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static int proc_getpath(struct fd *fd, char *buf) {
}

static int proc_stat(struct mount *UNUSED(mount), const char *path, struct statbuf *stat) {
struct proc_entry entry;
struct proc_entry entry = {};
int err = proc_lookup(path, &entry);
if (err < 0)
return err;
Expand Down

0 comments on commit e43c390

Please sign in to comment.