diff -r bc9a9016467d -r 3122058df7a5 mercurial/cext/revlog.c --- a/mercurial/cext/revlog.c Wed Mar 18 21:27:45 2020 +0100 +++ b/mercurial/cext/revlog.c Fri Mar 20 10:04:13 2020 -0400 @@ -153,11 +153,12 @@ { if (self->inlined && pos > 0) { if (self->offsets == NULL) { + Py_ssize_t ret; self->offsets = PyMem_Malloc(self->raw_length * sizeof(*self->offsets)); if (self->offsets == NULL) return (const char *)PyErr_NoMemory(); - Py_ssize_t ret = inline_scan(self, self->offsets); + ret = inline_scan(self, self->offsets); if (ret == -1) { return NULL; };