wl-x11: Declare keyboard strings as NULL (initially) to avoid crash

when updating keymap

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-08-07 12:24:42 -04:00
parent f56a08fc6c
commit 31e38208b4
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ _cb_keymap_changed(void *data, int type EINA_UNUSED, void *event EINA_UNUSED)
{
E_Comp_Data *cdata;
E_Config_XKB_Layout *ekbd;
char *rules, *model, *layout;
char *rules = NULL, *model = NULL, *layout = NULL;
Ecore_X_Atom xkb = 0;
Ecore_X_Window root = 0;
int len = 0;