aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Junio C Hamano <gitster@pobox.com> 2009-09-14 14:48:20 -0700
committerGravatar Junio C Hamano <gitster@pobox.com> 2009-09-14 14:48:20 -0700
commit4197ce3c6d943759e1088a0298b64571b4bc725a (patch)
tree3ab660ad62dd7c8c8bd637aa9bc1c2843a8439fe
parent7fb6bcff2dece2ff9fbc5ebfe526d9b2a7e764c4 (diff)
parentb2025146d0718d953036352f8435cfa392b1d799 (diff)
downloadgit-4197ce3c6d943759e1088a0298b64571b4bc725a.tar.gz
git-4197ce3c6d943759e1088a0298b64571b4bc725a.zip
Merge branch 'rc/maint-http-no-head-pack-check' into maint
* rc/maint-http-no-head-pack-check: http.c: avoid freeing an uninitialized pointer
-rw-r--r--http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.c b/http.c
index d0cc1b3340..15926d8d6d 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)) {