Merge branch 'maint'

* maint:
  http.c: avoid freeing an uninitialized pointer
This commit is contained in:
Junio C Hamano 2009-09-14 14:48:27 -07:00
commit 2b621c1a3a

2
http.c
View File

@ -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)) {