diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/rangeobject.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index 1aac2dc..d4622eb 100644 --- a/Objects/rangeobject.c +++ b/Objects/rangeobject.c @@ -19,6 +19,9 @@ PyRange_New(long start, long len, long step, int reps) { rangeobject *obj = PyObject_NEW(rangeobject, &PyRange_Type); + if (obj == NULL) + return NULL; + obj->start = start; obj->len = len; obj->step = step; |