Mercurial > public > mercurial-scm > hg
diff mercurial/cext/revlog.c @ 44587:090a1a78be4a
merge with stable
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 24 Mar 2020 21:41:24 +0900 |
parents | f8427841c8fc 3122058df7a5 |
children | 61e7464477ac |
line wrap: on
line diff
--- a/mercurial/cext/revlog.c Sun Mar 22 18:40:04 2020 +0900 +++ b/mercurial/cext/revlog.c Tue Mar 24 21:41:24 2020 +0900 @@ -155,11 +155,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; };