diff options
author | Guido van Rossum <guido@python.org> | 1996-09-11 23:31:07 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-09-11 23:31:07 +0000 |
commit | 9be756018d5ff1679f3c62dcef48d9a280ab226e (patch) | |
tree | 8cbd739461c2fb8dec7409c7e7398428db83a195 /Modules | |
parent | 8af6f0d2707df0550b4a9a477f88cb756450960e (diff) | |
download | cpython-9be756018d5ff1679f3c62dcef48d9a280ab226e.tar.gz |
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 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); |