]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed unreachable section warning on Visual
authorYann Collet <cyan@fb.com>
Fri, 28 Sep 2018 16:34:16 +0000 (09:34 -0700)
committerYann Collet <cyan@fb.com>
Fri, 28 Sep 2018 16:34:16 +0000 (09:34 -0700)
programs/fileio.c

index e780d481d29a8949b96e56b533b7f35b12e1fc83..2c4e9f6e86fdcc2d4033e7a223838d74d61a7f41 100644 (file)
@@ -2010,7 +2010,7 @@ FIO_analyzeFrames(fileInfo_t* info, FILE* const srcFile)
               && (numBytesRead == 0)
               && (info->compressedSize > 0)
               && (info->compressedSize != UTIL_FILESIZE_UNKNOWN) ) {
-                return info_success;
+                break;  /* correct end of file => success */
             }
             EXIT_IF(feof(srcFile), info_not_zstd, "Error: reached end of file with incomplete frame");
             EXIT_IF(1, info_frame_error, "Error: did not reach end of file but ran out of frames");