diff options
author | Guido van Rossum <guido@python.org> | 1996-09-11 23:31:07 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-09-11 23:31:07 (GMT) |
commit | 3863abb921eb1ae7b457df653681c058b61cfe1d (patch) | |
tree | 08c7d2774918a8cd6eea2a832a29437ab49b1971 /Modules | |
parent | c35f933c444391e4f463a7fc02dd7a4b0ffec496 (diff) | |
download | cpython-3863abb921eb1ae7b457df653681c058b61cfe1d.zip cpython-3863abb921eb1ae7b457df653681c058b61cfe1d.tar.gz cpython-3863abb921eb1ae7b457df653681c058b61cfe1d.tar.bz2 |
Correct typo: return -1 for error, not NULL
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/flmodule.c | 2 |
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); |