From 3863abb921eb1ae7b457df653681c058b61cfe1d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 11 Sep 1996 23:31:07 +0000 Subject: [PATCH] Correct typo: return -1 for error, not NULL --- Modules/flmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/flmodule.c b/Modules/flmodule.c index f1dc634442b..b224ca2fcb8 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);