aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/urlglob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/urlglob.c b/src/urlglob.c
index 64d700783..018f0e41d 100644
--- a/src/urlglob.c
+++ b/src/urlglob.c
@@ -314,7 +314,7 @@ int glob_url(URLGlob** glob, char* url, int *urlnum, FILE *error)
if(NULL == glob_buffer)
return CURLE_OUT_OF_MEMORY;
- glob_expand = (URLGlob*)malloc(sizeof(URLGlob));
+ glob_expand = (URLGlob*)calloc(sizeof(URLGlob), 1);
if(NULL == glob_expand) {
free(glob_buffer);
return CURLE_OUT_OF_MEMORY;