summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-01-02 14:20:16 (GMT)
committerGeorg Brandl <georg@python.org>2011-01-02 14:20:16 (GMT)
commitd823bdcb0e2b4680fb6e63e5e96e44c54efc8231 (patch)
treebfd3f1ca8b58efed0f43501c7fcad003b84af37b /Modules
parent8ebebd8f7e0d4f9e11a76687ce797bb78a219c34 (diff)
downloadcpython-d823bdcb0e2b4680fb6e63e5e96e44c54efc8231.zip
cpython-d823bdcb0e2b4680fb6e63e5e96e44c54efc8231.tar.gz
cpython-d823bdcb0e2b4680fb6e63e5e96e44c54efc8231.tar.bz2
#10804: fix copy-paste error when checking assigned fields for NULL.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_json.c b/Modules/_json.c
index 12ddea2..71d3e58 100644
--- a/Modules/_json.c
+++ b/Modules/_json.c
@@ -1732,7 +1732,7 @@ scanner_init(PyObject *self, PyObject *args, PyObject *kwds)
if (s->object_hook == NULL)
goto bail;
s->pairs_hook = PyObject_GetAttrString(ctx, "object_pairs_hook");
- if (s->object_hook == NULL)
+ if (s->pairs_hook == NULL)
goto bail;
s->parse_float = PyObject_GetAttrString(ctx, "parse_float");
if (s->parse_float == NULL)