diff options
author | Guido van Rossum <guido@python.org> | 1996-09-11 22:51:25 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-09-11 22:51:25 (GMT) |
commit | b7fc30410919f3b0aba4b17bc66803e71bccab46 (patch) | |
tree | 1c98b3ced17b1c26ee2f68fb84c776dcec528646 | |
parent | e1607a8d0e5d4f9e2fda282fb3d9c2c1805024eb (diff) | |
download | cpython-b7fc30410919f3b0aba4b17bc66803e71bccab46.zip cpython-b7fc30410919f3b0aba4b17bc66803e71bccab46.tar.gz cpython-b7fc30410919f3b0aba4b17bc66803e71bccab46.tar.bz2 |
Correct typo in setattr: return -1 for error, not NULL
-rw-r--r-- | Objects/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/object.c b/Objects/object.c index 9c99ea2..b1025ef 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; |