mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-11 05:29:28 -04:00
SMJS: Correct sense of JS_ValueToInt32 return value test.
I made this bug in commit b53525e98e
.
This commit is contained in:
parent
5405f08a05
commit
ec32eeb1d3
@ -365,7 +365,7 @@ input_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||
: FORM_MODE_NORMAL);
|
||||
break;
|
||||
case JSP_INPUT_MAX_LENGTH:
|
||||
if (JS_ValueToInt32(ctx, *vp, &fc->maxlength))
|
||||
if (!JS_ValueToInt32(ctx, *vp, &fc->maxlength))
|
||||
return JS_FALSE;
|
||||
break;
|
||||
case JSP_INPUT_NAME:
|
||||
|
Loading…
Reference in New Issue
Block a user