summaryrefslogtreecommitdiffstats
path: root/programs/lz4io.c
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-05-18 21:35:09 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-05-18 21:35:09 (GMT)
commita9ff13a8bb9932a4784b9cbb654075dfff7652fe (patch)
tree495c46ae36373b68d9c8aaf28574d275a5b8a51d /programs/lz4io.c
parent58b5aadb1fc5d937e81c8f33e0e8290f2097c6bb (diff)
downloadlz4-a9ff13a8bb9932a4784b9cbb654075dfff7652fe.zip
lz4-a9ff13a8bb9932a4784b9cbb654075dfff7652fe.tar.gz
lz4-a9ff13a8bb9932a4784b9cbb654075dfff7652fe.tar.bz2
minor test refactor
Diffstat (limited to 'programs/lz4io.c')
-rw-r--r--programs/lz4io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c
index 92f8706..8b80fbc 100644
--- a/programs/lz4io.c
+++ b/programs/lz4io.c
@@ -301,12 +301,13 @@ static int LZ4IO_getFiles(const char* input_filename, const char* output_filenam
*pfoutput = fopen( output_filename, "wb" );
}
- if ( *pfoutput==0) EXM_THROW(13, "Pb opening %s", output_filename);
+ if (*pfoutput==0) EXM_THROW(13, "Pb opening %s", output_filename);
if (g_sparseFileSupport)
{
long int ftr = ftell(*pfoutput);
- if (ftr==-1) g_sparseFileSupport = 0;
+ /* DISPLAY("%s->%s ==> %i \n", input_filename, output_filename, (int)ftr); */
+ if (ftr!=0) g_sparseFileSupport = 0;
}
return 0;