1
0
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:
Miciah Dashiel Butler Masters 2005-12-29 07:20:33 +00:00 committed by Miciah Dashiel Butler Masters
parent 1ba2b6931a
commit 46b1db47a2

View File

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