summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2017-11-24 09:26:23 -0800
committerBob Ippolito <bob@redivi.com>2017-11-24 09:26:23 -0800
commit21bb1ebff80400309952a9353698802b762a4984 (patch)
tree20a585bdcd25cebb7e899ea9b181408e87827529
parent42ec87d0a3c14b8d4536900868e6a95d96431672 (diff)
downloadsimplejson-21bb1ebff80400309952a9353698802b762a4984.tar.gz
maybe fix windows 2.x build
-rw-r--r--simplejson/_speedups.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c
index b691b4b..f352443 100644
--- a/simplejson/_speedups.c
+++ b/simplejson/_speedups.c
@@ -3357,10 +3357,11 @@ static struct PyModuleDef moduledef = {
PyObject *
import_dependency(char *module_name, char *attr_name)
{
+ PyObject *rval;
PyObject *module = PyImport_ImportModule(module_name);
if (module == NULL)
return NULL;
- PyObject *rval = PyObject_GetAttrString(module, attr_name);
+ rval = PyObject_GetAttrString(module, attr_name);
Py_DECREF(module);
return rval;
}