diff options
-rw-r--r-- | src/firejail/ls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/ls.c b/src/firejail/ls.c index 983927cf1..6bfa51afc 100644 --- a/src/firejail/ls.c +++ b/src/firejail/ls.c | |||
@@ -341,7 +341,7 @@ void sandboxfs(int op, pid_t pid, const char *path) { | |||
341 | } | 341 | } |
342 | 342 | ||
343 | // wait for the child to finish | 343 | // wait for the child to finish |
344 | int status = NULL; | 344 | int status = 0; |
345 | waitpid(child, &status, 0); | 345 | waitpid(child, &status, 0); |
346 | if (WIFEXITED(status) && WEXITSTATUS(status) == 0); | 346 | if (WIFEXITED(status) && WEXITSTATUS(status) == 0); |
347 | else | 347 | else |