summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-09-14 21:48:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-09-14 21:48:27 (GMT)
commit2b621c1a3aac23b8258885a9b4658d9ac993742f (patch)
tree83d9602eccfc733a550812ce492d4caa0af625c8 /http.c
parent20f34902d154f390ebaa7eed7f42ad14140b8acb (diff)
parent4197ce3c6d943759e1088a0298b64571b4bc725a (diff)
downloadgit-2b621c1a3aac23b8258885a9b4658d9ac993742f.zip
git-2b621c1a3aac23b8258885a9b4658d9ac993742f.tar.gz
git-2b621c1a3aac23b8258885a9b4658d9ac993742f.tar.bz2
Merge branch 'maint'
* maint: http.c: avoid freeing an uninitialized pointer
Diffstat (limited to 'http.c')
-rw-r--r--http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.c b/http.c
index 84def9f..23b2a19 100644
--- a/http.c
+++ b/http.c
@@ -866,7 +866,7 @@ static int fetch_pack_index(unsigned char *sha1, const char *base_url)
int ret = 0;
char *hex = xstrdup(sha1_to_hex(sha1));
char *filename;
- char *url;
+ char *url = NULL;
struct strbuf buf = STRBUF_INIT;
if (has_pack_index(sha1)) {