diff options
Diffstat (limited to 'Modules/_json.c')
-rw-r--r-- | Modules/_json.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_json.c b/Modules/_json.c index 39d39cb..890d27e 100644 --- a/Modules/_json.c +++ b/Modules/_json.c @@ -256,10 +256,11 @@ scanstring_str(PyObject *pystr, Py_ssize_t end, char *encoding, int strict) } /* Pick up this chunk if it's not zero length */ if (next != end) { + PyObject *strchunk; if (PyBuffer_FillInfo(&info, &buf[end], next - end, 1, 0) < 0) { goto bail; } - PyObject *strchunk = PyMemoryView_FromMemory(&info); + strchunk = PyMemoryView_FromMemory(&info); if (strchunk == NULL) { goto bail; } |