summaryrefslogtreecommitdiffstats
path: root/programs/lz4cli.c
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2020-09-29 05:37:20 (GMT)
committerYann Collet <cyan@fb.com>2020-09-30 00:20:52 (GMT)
commitad2d2764c71a3d993f8da415186dd4d6345ceea3 (patch)
tree99fdf5377f2a76d9c3a0c996c3ddd33c39459a0c /programs/lz4cli.c
parent78f4fdbb89e71325cedc751e1f7c2403bb43c3f4 (diff)
downloadlz4-ad2d2764c71a3d993f8da415186dd4d6345ceea3.zip
lz4-ad2d2764c71a3d993f8da415186dd4d6345ceea3.tar.gz
lz4-ad2d2764c71a3d993f8da415186dd4d6345ceea3.tar.bz2
fix minor static analyzer warnings
detected by scan-build, cppcheck and advanved compilation flags fix #786
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r--programs/lz4cli.c2
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; }