From: Guido van Rossum Date: Wed, 11 Sep 1996 22:51:25 +0000 (+0000) Subject: Correct typo in setattr: return -1 for error, not NULL X-Git-Tag: v1.4~217 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7fc30410919f3b0aba4b17bc66803e71bccab46;p=thirdparty%2FPython%2Fcpython.git Correct typo in setattr: return -1 for error, not NULL --- diff --git a/Objects/object.c b/Objects/object.c index 9c99ea2d19ed..b1025ef88be5 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -370,7 +370,7 @@ setattr(v, name, w) 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;