cedric pushed a commit to branch enlightenment-0.17.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=36e64fc97e237ef76def08bf79716373a325fcdd

commit 36e64fc97e237ef76def08bf79716373a325fcdd
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Fri Apr 4 15:01:53 2014 -0400

    null check xkb layout list
    
    CID 1039869
---
 src/bin/e_xkb.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/e_xkb.c b/src/bin/e_xkb.c
index ed26411..29b1972 100644
--- a/src/bin/e_xkb.c
+++ b/src/bin/e_xkb.c
@@ -153,6 +153,7 @@ e_xkb_layout_next(void)
    Eina_List *l;
    E_Config_XKB_Layout *cl;
 
+   if (!e_config->xkb.used_layouts) return;
    l = eina_list_nth_list(e_config->xkb.used_layouts, e_config->xkb.cur_group);
    l = eina_list_next(l);
    if (!l) l = e_config->xkb.used_layouts;
@@ -173,6 +174,7 @@ e_xkb_layout_prev(void)
    Eina_List *l;
    E_Config_XKB_Layout *cl;
 
+   if (!e_config->xkb.used_layouts) return;
    l = eina_list_nth_list(e_config->xkb.used_layouts, e_config->xkb.cur_group);
    l = eina_list_prev(l);
    if (!l) l = eina_list_last(e_config->xkb.used_layouts);

-- 


Reply via email to