From: Georg Brandl Date: Sun, 2 Jan 2011 14:20:16 +0000 (+0000) Subject: #10804: fix copy-paste error when checking assigned fields for NULL. X-Git-Tag: v2.7.2rc1~422 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d823bdcb0e2b4680fb6e63e5e96e44c54efc8231;p=thirdparty%2FPython%2Fcpython.git #10804: fix copy-paste error when checking assigned fields for NULL. --- diff --git a/Modules/_json.c b/Modules/_json.c index 12ddea2bce8d..71d3e58297d6 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)