Mercurial > hg
changeset 44587:090a1a78be4a
merge with stable
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 24 Mar 2020 21:41:24 +0900 |
parents | 0424a9134bcf (current diff) 3122058df7a5 (diff) |
children | 2a98b0cd4995 |
files | mercurial/cext/revlog.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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; };