diff options
-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) { |