Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'maint'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 14 Sep 2009 21:48:27 +0000
(14:48 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 14 Sep 2009 21:48:27 +0000
(14:48 -0700)
* maint:
http.c: avoid freeing an uninitialized pointer
http.c
patch
|
blob
|
history
raw
(from parent 1:
20f3490
)
diff --git
a/http.c
b/http.c
index 84def9ff2468bab7cc5a6f98583256e3514ac030..23b2a1932c7daebd585827da7effd1c5bbae5e69 100644
(file)
--- 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)) {