diff options
Diffstat (limited to 'Modules/_json.c')
-rw-r--r-- | Modules/_json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_json.c b/Modules/_json.c index fede6b1..9c8f66c 100644 --- a/Modules/_json.c +++ b/Modules/_json.c @@ -1717,7 +1717,7 @@ scanner_init(PyObject *self, PyObject *args, PyObject *kwds) } else if (PyUnicode_Check(s->encoding)) { PyObject *tmp = PyUnicode_AsEncodedString(s->encoding, NULL, NULL); - Py_SETREF(s->encoding, tmp); + Py_XSETREF(s->encoding, tmp); } if (s->encoding == NULL) goto bail; |