mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Check JS_TRUE == ... instead of JS_FALSE != ... in smjs_get_keymap_object.
This commit is contained in:
parent
1ba2b6931a
commit
46b1db47a2
@ -159,7 +159,7 @@ smjs_get_keymap_object(enum keymap_id keymap_id)
|
||||
data = intdup(keymap_id);
|
||||
if (!data) return NULL;
|
||||
|
||||
if (JS_FALSE != JS_SetPrivate(smjs_ctx, keymap_object, data))
|
||||
if (JS_TRUE == JS_SetPrivate(smjs_ctx, keymap_object, data))
|
||||
return keymap_object;
|
||||
|
||||
mem_free(data);
|
||||
|
Loading…
Reference in New Issue
Block a user