aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-11-29 11:59:45 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-11-29 11:59:45 -0500
commit1ea00c9738c6c33c1a0d77b43d3baae9afc347e9 (patch)
tree6cdd68732388797c01452a7b681e1596bcff3d0c /src
parentcoverity scan (diff)
downloadfirejail-1ea00c9738c6c33c1a0d77b43d3baae9afc347e9.tar.gz
firejail-1ea00c9738c6c33c1a0d77b43d3baae9afc347e9.tar.zst
firejail-1ea00c9738c6c33c1a0d77b43d3baae9afc347e9.zip
cppcheck scan
Diffstat (limited to 'src')
-rw-r--r--src/firejail/main.c3
-rw-r--r--src/firejail/profile.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c
index 41517877b..8076a8146 100644
--- a/src/firejail/main.c
+++ b/src/firejail/main.c
@@ -765,7 +765,8 @@ int main(int argc, char **argv) {
765 exit(1); 765 exit(1);
766 } 766 }
767 // ... and configure it 767 // ... and configure it
768 cfg.profile_ignore[j] = argv[i] + 9; 768 else
769 cfg.profile_ignore[j] = argv[i] + 9;
769 } 770 }
770#ifdef HAVE_CHROOT 771#ifdef HAVE_CHROOT
771 else if (strncmp(argv[i], "--chroot=", 9) == 0) { 772 else if (strncmp(argv[i], "--chroot=", 9) == 0) {
diff --git a/src/firejail/profile.c b/src/firejail/profile.c
index de89cf40f..6ac7cbe62 100644
--- a/src/firejail/profile.c
+++ b/src/firejail/profile.c
@@ -93,7 +93,9 @@ int profile_check_line(char *ptr, int lineno) {
93 exit(1); 93 exit(1);
94 } 94 }
95 // ... and configure it 95 // ... and configure it
96 cfg.profile_ignore[j] = str; 96 else
97 cfg.profile_ignore[j] = str;
98
97 return 0; 99 return 0;
98 } 100 }
99 101