summaryrefslogtreecommitdiffstats
path: root/programs
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-06-29 04:05:33 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-06-29 04:05:33 (GMT)
commit81f19264ab3dfd5744110e55958572a11f900a4d (patch)
treecfeb74a381a50205abd8bd0edffc4fc5122a27e6 /programs
parentaa1350e1399c808d2de83668249fff83fe70a24e (diff)
downloadlz4-81f19264ab3dfd5744110e55958572a11f900a4d.zip
lz4-81f19264ab3dfd5744110e55958572a11f900a4d.tar.gz
lz4-81f19264ab3dfd5744110e55958572a11f900a4d.tar.bz2
lz4cli : add one malloc test
Diffstat (limited to 'programs')
-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;