summaryrefslogtreecommitdiffstats
path: root/programs
diff options
context:
space:
mode:
authorPrzemyslaw Skibinski <inikep@gmail.com>2016-12-07 13:31:46 (GMT)
committerPrzemyslaw Skibinski <inikep@gmail.com>2016-12-07 13:31:46 (GMT)
commit1289038240ab81aee4cc70ef071da907ccfdfcde (patch)
treeb5c75f8cd677e541c522ad7b53063741d28ec6cc /programs
parent410ba53dbc5859ab2599d3ba7e65da65f504f95b (diff)
downloadlz4-1289038240ab81aee4cc70ef071da907ccfdfcde.zip
lz4-1289038240ab81aee4cc70ef071da907ccfdfcde.tar.gz
lz4-1289038240ab81aee4cc70ef071da907ccfdfcde.tar.bz2
15-bit LZ4HC_HASH_LOG
Diffstat (limited to 'programs')
-rw-r--r--programs/lz4io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c
index f8a8f2b..46daaf7 100644
--- a/programs/lz4io.c
+++ b/programs/lz4io.c
@@ -591,9 +591,10 @@ int LZ4IO_compressMultipleFilenames(const char** inFileNamesTable, int ifntSize,
char* dstFileName = (char*)malloc(FNSPACE);
size_t ofnSize = FNSPACE;
const size_t suffixSize = strlen(suffix);
- cRess_t const ress = LZ4IO_createCResources();
+ cRess_t ress;
if (dstFileName == NULL) return ifntSize; /* not enough memory */
+ ress = LZ4IO_createCResources();
/* loop on each file */
for (i=0; i<ifntSize; i++) {