aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-04-11 16:26:12 -0500
committerTed Gould <ted@gould.cx>2012-04-11 16:26:12 -0500
commit9dd4e51920a5adccafbc2091d6e29391ab0c3bb5 (patch)
treea4f4042b22a7475d38b391fc8747f9781c0ec029 /libdbusmenu-gtk
parent4b1d462aeb7ba623b007799daab4f2dfd5f6f540 (diff)
downloadlibdbusmenu-9dd4e51920a5adccafbc2091d6e29391ab0c3bb5.tar.gz
libdbusmenu-9dd4e51920a5adccafbc2091d6e29391ab0c3bb5.tar.bz2
libdbusmenu-9dd4e51920a5adccafbc2091d6e29391ab0c3bb5.zip
No reason to bother with that in the global namespace
Diffstat (limited to 'libdbusmenu-gtk')
-rw-r--r--libdbusmenu-gtk/genericmenuitem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdbusmenu-gtk/genericmenuitem.c b/libdbusmenu-gtk/genericmenuitem.c
index bff4ee5..81d67fe 100644
--- a/libdbusmenu-gtk/genericmenuitem.c
+++ b/libdbusmenu-gtk/genericmenuitem.c
@@ -241,12 +241,12 @@ has_mnemonic (const gchar * string, gboolean previous_underscore)
return FALSE;
}
-static GRegex * underscore_regex = NULL;
-
/* Sanitize the label by removing "__" meaning "_" */
gchar *
sanitize_label (const gchar * in_label)
{
+ static GRegex * underscore_regex = NULL;
+
g_return_val_if_fail(in_label != NULL, NULL);
if (underscore_regex == NULL) {