summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 7b2adbe..fef57fc 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -917,6 +917,11 @@ _PyObject_LookupAttr(PyObject *v, PyObject *name, PyObject **result)
}
*result = (*tp->tp_getattr)(v, (char *)name_str);
}
+ else {
+ *result = NULL;
+ return 0;
+ }
+
if (*result != NULL) {
return 1;
}