summaryrefslogtreecommitdiffstats
path: root/programs/lz4io.c
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-04-11 09:25:08 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-04-11 09:25:08 (GMT)
commit8b8e5efefe2dfdfbeb3ebc7591d2c345c34552f5 (patch)
treecbe9fd3ada30eb844bf1b4935b8ad6f2d021b887 /programs/lz4io.c
parentc22a0e1e1387a9a70b47be4ff5dbc67bbab7da16 (diff)
downloadlz4-8b8e5efefe2dfdfbeb3ebc7591d2c345c34552f5.zip
lz4-8b8e5efefe2dfdfbeb3ebc7591d2c345c34552f5.tar.gz
lz4-8b8e5efefe2dfdfbeb3ebc7591d2c345c34552f5.tar.bz2
fixed minor sanitize warning
Diffstat (limited to 'programs/lz4io.c')
-rw-r--r--programs/lz4io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c
index 4071b1e..b6e678e 100644
--- a/programs/lz4io.c
+++ b/programs/lz4io.c
@@ -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);