[Xfce4-commits] <xfce4-xkb-plugin:master> Don't crash on NULL group name (bug #6393).

Jérôme Guelfucci noreply at xfce.org
Thu Apr 28 21:26:03 CEST 2011


Updating branch refs/heads/master
         to a7ed90a4019db00b150b3c0bb4779dae3570cca6 (commit)
       from efa5311a065d24c2ea584b4e0c4658d6dbb687a6 (commit)

commit a7ed90a4019db00b150b3c0bb4779dae3570cca6
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Thu Apr 28 19:25:03 2011 +0200

    Don't crash on NULL group name (bug #6393).

 panel-plugin/xkb-util.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/panel-plugin/xkb-util.c b/panel-plugin/xkb-util.c
index 667706b..945eacb 100644
--- a/panel-plugin/xkb-util.c
+++ b/panel-plugin/xkb-util.c
@@ -62,6 +62,11 @@ xkb_util_get_layout_string (gchar *group_name, gchar *variant)
 gchar*
 xkb_util_normalize_group_name (gchar* group_name)
 {
+    if (!group_name)
+    {
+        return NULL;
+    }
+
     if (strlen (group_name) <= 3)
     {
         return g_strdup (group_name);



More information about the Xfce4-commits mailing list