aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 992c3413c..813bf49cc 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3054,6 +3054,9 @@ static int create_dir_hierarchy(char *outfile)
outdup = strdup(outfile);
dirbuildup = malloc(sizeof(char) * strlen(outfile));
+ if(!dirbuildup)
+ return -1;
+ dirbuildup[0] = '\0';
tempdir = strtok(outdup, DIR_CHAR);