Skip to content

Commit

Permalink
Fix (fatal-warnings) warning by adding braces
Browse files Browse the repository at this point in the history
  • Loading branch information
topimiettinen committed Apr 11, 2020
1 parent c23fb14 commit 3e23474
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fseccomp/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ printf("\n");
arg_quiet = 1;

char *error_action = getenv("FIREJAIL_SECCOMP_ERROR_ACTION");
if (error_action)
if (error_action) {
if (strcmp(error_action, "kill") == 0)
arg_seccomp_error_action = SECCOMP_RET_KILL;
else {
Expand All @@ -79,6 +79,7 @@ printf("\n");
errExit("seccomp-error-action: unknown errno");
arg_seccomp_error_action |= SECCOMP_RET_ERRNO;
}
}

if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-?") ==0) {
usage();
Expand Down

0 comments on commit 3e23474

Please # to comment.