merge with stable
authorYuya Nishihara <yuya@tcha.org>
Tue, 24 Mar 2020 21:41:24 +0900
changeset 44587 090a1a78be4a
parent 44586 0424a9134bcf (current diff)
parent 44580 3122058df7a5 (diff)
child 44588 2a98b0cd4995
merge with stable
mercurial/cext/revlog.c
--- 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;
 			};