diff options
author | Ted Gould <ted@gould.cx> | 2012-04-11 16:26:12 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-04-11 16:26:12 -0500 |
commit | 9dd4e51920a5adccafbc2091d6e29391ab0c3bb5 (patch) | |
tree | a4f4042b22a7475d38b391fc8747f9781c0ec029 | |
parent | 4b1d462aeb7ba623b007799daab4f2dfd5f6f540 (diff) | |
download | libdbusmenu-9dd4e51920a5adccafbc2091d6e29391ab0c3bb5.tar.gz libdbusmenu-9dd4e51920a5adccafbc2091d6e29391ab0c3bb5.tar.bz2 libdbusmenu-9dd4e51920a5adccafbc2091d6e29391ab0c3bb5.zip |
No reason to bother with that in the global namespace
-rw-r--r-- | libdbusmenu-gtk/genericmenuitem.c | 4 |
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) { |