diff options
-rw-r--r-- | builtin/receive-pack.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c index 45e2dd2a65..66149777a0 100644 --- a/builtin/receive-pack.c +++ b/builtin/receive-pack.c @@ -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; } |