]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct typo: return -1 for error, not NULL
authorGuido van Rossum <guido@python.org>
Wed, 11 Sep 1996 23:31:07 +0000 (23:31 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 11 Sep 1996 23:31:07 +0000 (23:31 +0000)
Modules/flmodule.c

index f1dc634442ba20db69c70140a6a8202b63274919..b224ca2fcb8486a26472f78518f45550e542bfc2 100644 (file)
@@ -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);