mirror of
https://github.com/git/git.git
synced 2025-04-11 14:16:36 +00:00
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
This commit is contained in:
commit
4197ce3c6d
2
http.c
2
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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user