diff options
Diffstat (limited to 'tools/xor_compress.c')
-rw-r--r-- | tools/xor_compress.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/xor_compress.c b/tools/xor_compress.c index 48e5167..2e1f4fe 100644 --- a/tools/xor_compress.c +++ b/tools/xor_compress.c @@ -98,9 +98,8 @@ int write_compressed(const char *filename, unsigned char *data, size_t n, bool v } int main(int argc, char *argv[]) { - bool verbose = false; - if (argc > 1 && !strcmp(argv[1], "-v")) { - verbose = true; + bool verbose = argc > 1 && !strcmp(argv[1], "-v"); + if (verbose) { argv++; argc--; } |