diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/classobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index e3b12c6..0661e81 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -324,6 +324,8 @@ instance_length(inst) return -1; res = call_object(func, (object *)NULL); DECREF(func); + if (res == NULL) + return -1; if (is_intobject(res)) { outcome = getintvalue(res); if (outcome < 0) |