diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2015-06-29 04:05:33 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2015-06-29 04:05:33 (GMT) |
commit | 81f19264ab3dfd5744110e55958572a11f900a4d (patch) | |
tree | cfeb74a381a50205abd8bd0edffc4fc5122a27e6 /programs | |
parent | aa1350e1399c808d2de83668249fff83fe70a24e (diff) | |
download | lz4-81f19264ab3dfd5744110e55958572a11f900a4d.zip lz4-81f19264ab3dfd5744110e55958572a11f900a4d.tar.gz lz4-81f19264ab3dfd5744110e55958572a11f900a4d.tar.bz2 |
lz4cli : add one malloc test
Diffstat (limited to 'programs')
-rw-r--r-- | programs/lz4cli.c | 1 |
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; |