1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

fixed the create_dir_hierarchy() to not use uninited memory, as noticed by

Matthew Blain.
This commit is contained in:
Daniel Stenberg 2003-01-07 09:35:57 +00:00
parent e69362df22
commit 0f34521612

View File

@ -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);