aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-12 15:53:11 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-12 15:53:11 +0200
commit0788459e8e66dfa656700915f43478097f58c184 (patch)
treee5005df3692cb4b49b5c759507ffc6e91a7a5f82
parent9baaba3236f0e1ec6d253d6d01b88142d73c640a (diff)
parentc942c531739e660348f76cb0dc8d8bb66ce8be81 (diff)
downloadayatana-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.c2
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);
}