summaryrefslogtreecommitdiff
path: root/c/call_python.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/call_python.c')
-rw-r--r--c/call_python.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/call_python.c b/c/call_python.c
index c4d6f60..4fd60c1 100644
--- a/c/call_python.c
+++ b/c/call_python.c
@@ -43,7 +43,7 @@ static PyObject *_ffi_def_extern_decorator(PyObject *outer_args, PyObject *fn)
return NULL;
if (s == NULL) {
- PyObject *name = PyObject_GetAttrString(fn, "__name__");
+ name = PyObject_GetAttrString(fn, "__name__");
if (name == NULL)
return NULL;
s = PyString_AsString(name);