summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmatekbd/matekbd-desktop-config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmatekbd/matekbd-desktop-config.c b/libmatekbd/matekbd-desktop-config.c
index 7ecb376..03a98de 100644
--- a/libmatekbd/matekbd-desktop-config.c
+++ b/libmatekbd/matekbd-desktop-config.c
@@ -90,7 +90,7 @@ static gboolean
*lld = g_strdup ("");
}
- if (*pv != NULL) {
+ if (pv != NULL && *pv != NULL) {
g_snprintf (item->name, sizeof item->name, "%s",
*pv);
if (xkl_config_registry_find_variant
@@ -115,7 +115,7 @@ static gboolean
pl++;
- if (*pv != NULL)
+ if (pv != NULL && *pv != NULL)
pv++;
}