From adb5b299c9af7b6bed1f12a5b590abab0bc0e27b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 30 May 2020 21:40:20 -0400 Subject: [PATCH] label: Fix mnemonic zero We were confusing '\0' and '0' when parsing the label for mnemonics. Fixes: #2805 --- gtk/gtklabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index a66581cb48..60c9d18d94 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -2239,7 +2239,7 @@ extract_mnemonic_keyval (const char *text, p = g_utf8_next_char (p); c = g_utf8_get_char (p); - if (c != '_' && c != '0') + if (c != '_' && c != '\0') { const gsize byte_index = p - text - 1; /* Of the _ */