diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2020-09-29 05:37:20 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2020-09-30 00:09:58 (GMT) |
commit | 392809d66e6c98a7c8653a2a32f6843af0f4306a (patch) | |
tree | 7fa07658ee0a800faeb531bc29110ff69a9dd6cd /programs/lz4cli.c | |
parent | 78f4fdbb89e71325cedc751e1f7c2403bb43c3f4 (diff) | |
download | lz4-392809d66e6c98a7c8653a2a32f6843af0f4306a.zip lz4-392809d66e6c98a7c8653a2a32f6843af0f4306a.tar.gz lz4-392809d66e6c98a7c8653a2a32f6843af0f4306a.tar.bz2 |
fix minor static analyzer warnings
detected by scan-build and cppcheck
fix #786
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r-- | programs/lz4cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c index 67dcaa1..d7d4f81 100644 --- a/programs/lz4cli.c +++ b/programs/lz4cli.c @@ -395,7 +395,7 @@ int main(int argc, const char** argv) if (!strcmp(argument, "--favor-decSpeed")) { LZ4IO_favorDecSpeed(prefs, 1); continue; } if (!strcmp(argument, "--verbose")) { displayLevel++; continue; } if (!strcmp(argument, "--quiet")) { if (displayLevel) displayLevel--; continue; } - if (!strcmp(argument, "--version")) { DISPLAYOUT(WELCOME_MESSAGE); return 0; } + if (!strcmp(argument, "--version")) { DISPLAYOUT(WELCOME_MESSAGE); goto _cleanup; } if (!strcmp(argument, "--help")) { usage_advanced(exeName); goto _cleanup; } if (!strcmp(argument, "--keep")) { LZ4IO_setRemoveSrcFile(prefs, 0); continue; } /* keep source file (default) */ if (!strcmp(argument, "--rm")) { LZ4IO_setRemoveSrcFile(prefs, 1); continue; } |