aboutsummaryrefslogtreecommitdiff
path: root/http-pull.c
diff options
context:
space:
mode:
Diffstat (limited to 'http-pull.c')
-rw-r--r--http-pull.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http-pull.c b/http-pull.c
index a17225719..192dcc370 100644
--- a/http-pull.c
+++ b/http-pull.c
@@ -73,7 +73,7 @@ static int fetch(unsigned char *sha1)
curl_easy_setopt(curl, CURLOPT_FILE, NULL);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, fwrite_sha1_file);
- url = malloc(strlen(base) + 50);
+ url = xmalloc(strlen(base) + 50);
strcpy(url, base);
posn = url + strlen(base);
strcpy(posn, "objects/");