summaryrefslogtreecommitdiffstats
path: root/Modules/flmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-09-11 23:31:07 (GMT)
committerGuido van Rossum <guido@python.org>1996-09-11 23:31:07 (GMT)
commit3863abb921eb1ae7b457df653681c058b61cfe1d (patch)
tree08c7d2774918a8cd6eea2a832a29437ab49b1971 /Modules/flmodule.c
parentc35f933c444391e4f463a7fc02dd7a4b0ffec496 (diff)
downloadcpython-3863abb921eb1ae7b457df653681c058b61cfe1d.zip
cpython-3863abb921eb1ae7b457df653681c058b61cfe1d.tar.gz
cpython-3863abb921eb1ae7b457df653681c058b61cfe1d.tar.bz2
Correct typo: return -1 for error, not NULL
Diffstat (limited to 'Modules/flmodule.c')
-rw-r--r--Modules/flmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/flmodule.c b/Modules/flmodule.c
index f1dc6344..b224ca2 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);