Skip to content

Commit

Permalink
sysctl: typo fix
Browse files Browse the repository at this point in the history
CID 152110 (#1 of 1): Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this statement: goto out;.
  • Loading branch information
avagin committed Oct 5, 2015
1 parent e5b69da commit d58d3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ static int __userns_sysctl_op(void *arg, int unused, pid_t pid)
goto out;

reqs = xmalloc(sizeof(struct sysctl_req) * userns_req->nr_req);
if (!fds)
if (!reqs)
goto out;

memset(fds, -1, sizeof(int) * userns_req->nr_req);
Expand Down

0 comments on commit d58d3f3

Please sign in to comment.