Skip to content

Commit

Permalink
process: typo fix
Browse files Browse the repository at this point in the history
CID 131308 (#1 of 1): Dereference before null check (REVERSE_INULL)
check_after_deref: Null-checking p suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
  • Loading branch information
avagin committed Oct 22, 2015
1 parent b9db482 commit 4b32c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static int local_desc_set_env(ct_process_desc_t h, char **env, int n)
return -LCTERR_INVARG;

p->env = xzalloc(n * sizeof(char *));
if (p == NULL)
if (p->env == NULL)
return -1;

p->envn = n;
Expand Down

0 comments on commit 4b32c2a

Please sign in to comment.