diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-04-12 15:53:11 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-04-12 15:53:11 +0200 |
commit | 0788459e8e66dfa656700915f43478097f58c184 (patch) | |
tree | e5005df3692cb4b49b5c759507ffc6e91a7a5f82 | |
parent | 9baaba3236f0e1ec6d253d6d01b88142d73c640a (diff) | |
parent | c942c531739e660348f76cb0dc8d8bb66ce8be81 (diff) | |
download | ayatana-indicator-keyboard-0788459e8e66dfa656700915f43478097f58c184.tar.gz ayatana-indicator-keyboard-0788459e8e66dfa656700915f43478097f58c184.tar.bz2 ayatana-indicator-keyboard-0788459e8e66dfa656700915f43478097f58c184.zip |
Merge branch 'tari01-pr/test-null-pointer'
Attribute GH PR #6: https://github.com/AyatanaIndicators/ayatana-indicator-keyboard/pull/6
-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); } |