#10804: fix copy-paste error when checking assigned fields for NULL.

This commit is contained in:
Georg Brandl 2011-01-02 14:20:16 +00:00
parent 8ebebd8f7e
commit d823bdcb0e

View file

@ -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)