diff options
-rw-r--r-- | src/keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 7e9d44fc..e88a3583 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -223,7 +223,7 @@ void keyboard_GetLayout(Keyboard *pKeyboard, gint nLayout, gchar **pLanguage, gc gchar *sVariant = pKeyboard->pPrivate->pConfigRec->variants[nLayout]; gchar *sId; - if (strlen(sVariant)) + if (sVariant && strlen(sVariant)) { sId = g_strconcat(sLayout, "+", sVariant, NULL); } |