diff Objects/object.c @ 4288:43ae045aa10e legacy-trunk

Correct typo in setattr: return -1 for error, not NULL
author Guido van Rossum <guido@python.org>
date Wed, 11 Sep 1996 22:51:25 +0000
parents 4241582636ad
children 65d2d8e67da3
line wrap: on
line diff
--- a/Objects/object.c	Wed Sep 11 21:58:26 1996 +0000
+++ b/Objects/object.c	Wed Sep 11 22:51:25 1996 +0000
@@ -370,7 +370,7 @@
 		int res;
 		s = newstringobject(name);
 		if (s == NULL)
-			return NULL;
+			return -1;
 		res = (*v->ob_type->tp_setattro)(v, s, w);
 		XDECREF(s);
 		return res;