summaryrefslogtreecommitdiffstats
path: root/programs/lz4cli.c
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-06-29 06:24:55 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-06-29 06:24:55 (GMT)
commitdb59c7d3321665a1d25f883ac7d80a2839fe22b9 (patch)
tree531a9830e26509f2d383480009b5e86f00f10c23 /programs/lz4cli.c
parent48feb909ddd2e3c151d0f9ea1a402f6b575c0bec (diff)
parent8901dcdc9db3ea5d47900be903dfdb5070dc6b21 (diff)
downloadlz4-db59c7d3321665a1d25f883ac7d80a2839fe22b9.zip
lz4-db59c7d3321665a1d25f883ac7d80a2839fe22b9.tar.gz
lz4-db59c7d3321665a1d25f883ac7d80a2839fe22b9.tar.bz2
Merge pull request #130 from Cyan4973/dev
Dev
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r--programs/lz4cli.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c
index 977c04e..cc5c96a 100644
--- a/programs/lz4cli.c
+++ b/programs/lz4cli.c
@@ -503,6 +503,7 @@ int main(int argc, char** argv)
{
size_t l = strlen(input_filename);
dynNameSpace = (char*)calloc(1,l+5);
+ if (dynNameSpace==NULL) exit(1);
strcpy(dynNameSpace, input_filename);
strcat(dynNameSpace, LZ4_EXTENSION);
output_filename = dynNameSpace;