diff options
-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; |