fixed minor sanitize warning
authorYann Collet <yann.collet.73@gmail.com>
Sat, 11 Apr 2015 09:25:08 +0000 (10:25 +0100)
committerYann Collet <yann.collet.73@gmail.com>
Sat, 11 Apr 2015 09:25:08 +0000 (10:25 +0100)
programs/Makefile
programs/lz4io.c

index 1c9e4b5..97be7d9 100644 (file)
@@ -61,7 +61,6 @@ endif
 TRAVIS_TARGET:= $(LZ4_TRAVIS_CI_ENV)
 TEST_FILES   := COPYING
 TEST_TARGETS := test-native
-FUZZER_TIME  ?= -T20mn
 
 
 default: lz4
@@ -103,7 +102,7 @@ datagen : datagen.c datagencli.c
        $(CC)      $(FLAGS) $^ -o $@$(EXT)
 
 clean:
-       @rm -f core *.o *.test \
+       @rm -f core *.o *.test tmp* \
         lz4$(EXT) lz4c$(EXT) lz4c32$(EXT) \
         fullbench$(EXT) fullbench32$(EXT) \
         fuzzer$(EXT) fuzzer32$(EXT) \
index 4071b1e..b6e678e 100644 (file)
@@ -53,8 +53,8 @@
 #include <sys/types.h> /* stat64 */
 #include <sys/stat.h>  /* stat64 */
 #include "lz4io.h"
-#include "lz4.h"      /* still required for legacy format */
-#include "lz4hc.h"    /* still required for legacy format */
+#include "lz4.h"       /* still required for legacy format */
+#include "lz4hc.h"     /* still required for legacy format */
 #include "lz4frame.h"
 
 
@@ -823,7 +823,7 @@ int LZ4IO_decompressFilename(const char* input_filename, const char* output_file
     end = clock();
     DISPLAYLEVEL(2, "\r%79s\r", "");
     DISPLAYLEVEL(2, "Successfully decoded %llu bytes \n", filesize);
-    if (filesize > 0)
+    if (end==start) end=start+1;
     {
         double seconds = (double)(end - start)/CLOCKS_PER_SEC;
         DISPLAYLEVEL(4, "Done in %.2f s ==> %.2f MB/s\n", seconds, (double)filesize / seconds / 1024 / 1024);