---
pack-revindex.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pack-revindex.c b/pack-revindex.c
index 202981b39c6b6..40651ec9fac2e 100644
--- a/pack-revindex.c
+++ b/pack-revindex.c
@@ -186,9 +186,9 @@ int find_revindex_position(struct packed_git *p, off_t ofs)
struct revindex_entry *find_pack_revindex(struct packed_git *p, off_t ofs)
{
-
+ int pos;
load_pack_revindex(p);
- const int pos = find_revindex_position(p, ofs);
+ pos = find_revindex_position(p, ofs);
if (pos < 0)
return NULL;
--
https://github.com/git/git/pull/572