summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput_evdev.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-06-02 18:23:44 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-06-02 18:23:42 -0400
commit8d08119fddf27d0ef49566cbac366af7b6beeb46 (patch)
tree5486ef347eb5317414bef3540ecb096b4cdf28f8 /src/lib/elput/elput_evdev.c
parentc60fbea89f7c89760c6d4db80b3f6a459a0bf7bd (diff)
elput: add null checks for xkb compose pointers
somehow these can fail to be created
Diffstat (limited to 'src/lib/elput/elput_evdev.c')
-rw-r--r--src/lib/elput/elput_evdev.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elput/elput_evdev.c b/src/lib/elput/elput_evdev.c
index 716f8ac29e..be7c5800fd 100644
--- a/src/lib/elput/elput_evdev.c
+++ b/src/lib/elput/elput_evdev.c
@@ -200,11 +200,11 @@ _keyboard_compose_init(Elput_Keyboard *kbd)
200 if (kbd->compose_table) xkb_compose_table_unref(kbd->compose_table); 200 if (kbd->compose_table) xkb_compose_table_unref(kbd->compose_table);
201 kbd->compose_table = xkb_compose_table_new_from_locale(kbd->context, locale, 201 kbd->compose_table = xkb_compose_table_new_from_locale(kbd->context, locale,
202 XKB_COMPOSE_COMPILE_NO_FLAGS); 202 XKB_COMPOSE_COMPILE_NO_FLAGS);
203 if (kbd->compose_state) xkb_compose_state_unref(kbd->compose_state);
203 if (kbd->compose_table) 204 if (kbd->compose_table)
204 { 205 kbd->compose_state = xkb_compose_state_new(kbd->compose_table, XKB_COMPOSE_STATE_NO_FLAGS);
205 if (kbd->compose_state) xkb_compose_state_unref(kbd->compose_state); 206 else
206 kbd->compose_state = xkb_compose_state_new(kbd->compose_table, XKB_COMPOSE_STATE_NO_FLAGS); 207 kbd->compose_state = NULL;
207 }
208} 208}
209 209
210static Eina_Bool 210static Eina_Bool