From: Guido van Rossum Date: Wed, 11 Sep 1996 23:31:07 +0000 (+0000) Subject: Correct typo: return -1 for error, not NULL X-Git-Tag: v1.4~208 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3863abb921eb1ae7b457df653681c058b61cfe1d;p=thirdparty%2FPython%2Fcpython.git Correct typo: return -1 for error, not NULL --- diff --git a/Modules/flmodule.c b/Modules/flmodule.c index f1dc634442ba..b224ca2fcb84 100644 --- a/Modules/flmodule.c +++ b/Modules/flmodule.c @@ -1902,7 +1902,7 @@ form_setattr(f, name, v) if (v == NULL) { err_setstr(TypeError, "can't delete form attributes"); - return 0; + return -1; } return setmember((char *)f->ob_form, form_memberlist, name, v);