mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
receive-pack: compilation fix
We do not use C99 "for loop initial declaration" in our codebase (yet), but one snuck in. Reported-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
edc6dccf81
commit
719483e547
|
@ -505,7 +505,9 @@ static char *find_header(const char *msg, size_t len, const char *key,
|
|||
static int constant_memequal(const char *a, const char *b, size_t n)
|
||||
{
|
||||
int res = 0;
|
||||
for (size_t i = 0; i < n; i++)
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < n; i++)
|
||||
res |= a[i] ^ b[i];
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue