diff options
author | netblue30 <netblue30@yahoo.com> | 2020-08-08 09:39:49 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2020-08-08 09:39:49 -0400 |
commit | 3738669d2839a6ecee49d88520363ae16b30db49 (patch) | |
tree | 33a265b9adfd8d9729ee71ecc8724097d155f4c3 /src | |
parent | annotate some functions as non-returning (#3574) (diff) | |
download | firejail-3738669d2839a6ecee49d88520363ae16b30db49.tar.gz firejail-3738669d2839a6ecee49d88520363ae16b30db49.tar.zst firejail-3738669d2839a6ecee49d88520363ae16b30db49.zip |
fix for older compilers (gcc 4.9.2, Debian 8)
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/output.c | 3 |
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; |