Skip to content

Commit 4197ce3

Browse files
committed
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
2 parents 7fb6bcf + b202514 commit 4197ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ static int fetch_pack_index(unsigned char *sha1, const char *base_url)
866866
int ret = 0;
867867
char *hex = xstrdup(sha1_to_hex(sha1));
868868
char *filename;
869-
char *url;
869+
char *url = NULL;
870870
struct strbuf buf = STRBUF_INIT;
871871

872872
if (has_pack_index(sha1)) {

0 commit comments

Comments
 (0)