Skip to content

Commit

Permalink
Initialize interp_ph
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed May 26, 2018
1 parent 77ec43d commit cb209cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static int elf_exec(struct fd *fd, const char *file, char *const argv[], char *c
char *interp_name = NULL;
struct fd *interp_fd = NULL;
struct elf_header interp_header;
struct prg_header *interp_ph;
struct prg_header *interp_ph = NULL;
for (unsigned i = 0; i < header.phent_count; i++) {
if (ph[i].type != PT_INTERP)
continue;
Expand Down

0 comments on commit cb209cb

Please sign in to comment.