aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/output.c
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2020-08-08 09:39:49 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2020-08-08 09:39:49 -0400
commit3738669d2839a6ecee49d88520363ae16b30db49 (patch)
tree33a265b9adfd8d9729ee71ecc8724097d155f4c3 /src/firejail/output.c
parentannotate some functions as non-returning (#3574) (diff)
downloadfirejail-3738669d2839a6ecee49d88520363ae16b30db49.tar.gz
firejail-3738669d2839a6ecee49d88520363ae16b30db49.tar.zst
firejail-3738669d2839a6ecee49d88520363ae16b30db49.zip
fix for older compilers (gcc 4.9.2, Debian 8)
Diffstat (limited to 'src/firejail/output.c')
-rw-r--r--src/firejail/output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/firejail/output.c b/src/firejail/output.c
index 0e961bb61..36cb905cb 100644
--- a/src/firejail/output.c
+++ b/src/firejail/output.c
@@ -122,7 +122,8 @@ void check_output(int argc, char **argv) {
122 } 122 }
123 bool found_separator = false; 123 bool found_separator = false;
124 /* copy argv into args, but drop --output(-stderr) arguments */ 124 /* copy argv into args, but drop --output(-stderr) arguments */
125 for (int i = 0, j = 0; i < argc; i++) { 125 int j;
126 for (i = 0, j = 0; i < argc; i++) {
126 if (!found_separator && i > 0) { 127 if (!found_separator && i > 0) {
127 if (strncmp(argv[i], "--output=", 9) == 0) { 128 if (strncmp(argv[i], "--output=", 9) == 0) {
128 continue; 129 continue;