diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/flmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/flmodule.c b/Modules/flmodule.c index 2d26533..d8c423c 100644 --- a/Modules/flmodule.c +++ b/Modules/flmodule.c @@ -325,7 +325,7 @@ generic_setattr(g, name, v) if (v == NULL) { err_setstr(TypeError, "can't delete forms object attributes"); - return NULL; + return -1; } /* "label" is an exception: setmember doesn't set strings; @@ -333,7 +333,7 @@ generic_setattr(g, name, v) if (strcmp(name, "label") == 0) { if (!is_stringobject(v)) { err_setstr(TypeError, "label attr must be string"); - return NULL; + return -1; } fl_set_object_label(g->ob_generic, getstringvalue(v)); return 0; |