Correct typo: return -1 for error, not NULL

This commit is contained in:
Guido van Rossum 1996-09-11 23:31:07 +00:00
parent c35f933c44
commit 3863abb921
1 changed files with 1 additions and 1 deletions

View File

@ -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);