summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-09-11 23:31:07 +0000
committerGuido van Rossum <guido@python.org>1996-09-11 23:31:07 +0000
commit9be756018d5ff1679f3c62dcef48d9a280ab226e (patch)
tree8cbd739461c2fb8dec7409c7e7398428db83a195 /Modules
parent8af6f0d2707df0550b4a9a477f88cb756450960e (diff)
downloadcpython-9be756018d5ff1679f3c62dcef48d9a280ab226e.tar.gz
Correct typo: return -1 for error, not NULL
Diffstat (limited to 'Modules')
-rw-r--r--Modules/flmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/flmodule.c b/Modules/flmodule.c
index f1dc634442..b224ca2fcb 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);