builtin/remote.c: rearrange xcalloc arguments
[gitweb.git] / http.c
diff --git a/http.c b/http.c
index 1212c587afbc4df6100f6a099939550eabeb5ebf..94e1afdee7890825dfda0946b999f524265603fc 100644 (file)
--- a/http.c
+++ b/http.c
@@ -1390,7 +1390,7 @@ struct http_object_request *new_http_object_request(const char *base_url,
        unsigned char *sha1)
 {
        char *hex = sha1_to_hex(sha1);
-       char *filename;
+       const char *filename;
        char prevfile[PATH_MAX];
        int prevlocal;
        char prev_buf[PREV_BUF_SIZE];