builtin-blame: Reencode commit messages according to git-log rules.
[gitweb.git] / builtin-http-fetch.c
index 03f34d767ddfc3c7bc9b18d28ec7350d47564679..f3e63d7206604029504aaf85b3d2e7731d054d2c 100644 (file)
@@ -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;