[Xfce4-commits] <xfce4-xkb-plugin:master> Don't crash on empty group name.

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


Updating branch refs/heads/master
         to 13fbedf81dae10d2c0dc1f39eda376000bd9025f (commit)
       from b6cd8f04e037de50f0fb02276d661b7778ef9f1c (commit)

commit 13fbedf81dae10d2c0dc1f39eda376000bd9025f
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Thu Apr 28 20:34:19 2011 +0200

    Don't crash on empty group name.

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

diff --git a/panel-plugin/xkb-cairo.c b/panel-plugin/xkb-cairo.c
index 877a7dd..6c6c91e 100644
--- a/panel-plugin/xkb-cairo.c
+++ b/panel-plugin/xkb-cairo.c
@@ -83,6 +83,9 @@ xkb_cairo_draw_flag (cairo_t *cr,
 
     g_assert (cr != NULL);
 
+    if (!group_name)
+        return;
+
     filename = xkb_util_get_flag_filename (group_name);
     handle = rsvg_handle_new_from_file (filename, NULL);
     if (!handle)



More information about the Xfce4-commits mailing list