diff options
author | monsta <[email protected]> | 2014-11-01 21:34:00 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2014-11-01 21:34:00 +0300 |
commit | f7a0a4ee01fe91b1d48fa176b9fe2b0861081c85 (patch) | |
tree | c9568892336d984610f7bd2a4a45a75f7256b371 | |
parent | 3a8e8cc9ac8efbf604945344e8207f087b3d9528 (diff) | |
download | libmatekbd-f7a0a4ee01fe91b1d48fa176b9fe2b0861081c85.tar.bz2 libmatekbd-f7a0a4ee01fe91b1d48fa176b9fe2b0861081c85.tar.xz |
fix possible dereference of NULL pointer
-rw-r--r-- | libmatekbd/matekbd-desktop-config.c | 4 |
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++; } |