summaryrefslogtreecommitdiff
path: root/builtin-http-fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin-http-fetch.c')
-rw-r--r--builtin-http-fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-http-fetch.c b/builtin-http-fetch.c
index 03f34d767d..f3e63d7206 100644
--- a/builtin-http-fetch.c
+++ b/builtin-http-fetch.c
@@ -53,7 +53,7 @@ int cmd_http_fetch(int argc, const char **argv, const char *prefix)
}
url = argv[arg];
if (url && url[strlen(url)-1] != '/') {
- rewritten_url = malloc(strlen(url)+2);
+ rewritten_url = xmalloc(strlen(url)+2);
strcpy(rewritten_url, url);
strcat(rewritten_url, "/");
url = rewritten_url;