Merge branch 'jk/remote-curl-an-array-in-struct-cannot-be-null' into maint
Fix a misspelled conditional that is always true. * jk/remote-curl-an-array-in-struct-cannot-be-null: do not check truth value of flex arrays
This commit is contained in:
commit
b9efce10c2
@ -760,7 +760,7 @@ static int fetch_git(struct discovery *heads,
|
|||||||
|
|
||||||
for (i = 0; i < nr_heads; i++) {
|
for (i = 0; i < nr_heads; i++) {
|
||||||
struct ref *ref = to_fetch[i];
|
struct ref *ref = to_fetch[i];
|
||||||
if (!ref->name || !*ref->name)
|
if (!*ref->name)
|
||||||
die("cannot fetch by sha1 over smart http");
|
die("cannot fetch by sha1 over smart http");
|
||||||
packet_buf_write(&preamble, "%s %s\n",
|
packet_buf_write(&preamble, "%s %s\n",
|
||||||
sha1_to_hex(ref->old_sha1), ref->name);
|
sha1_to_hex(ref->old_sha1), ref->name);
|
||||||
|
Loading…
Reference in New Issue
Block a user