Merge branch 'fix-mnemonic-zero' into 'master'

label: Fix mnemonic zero

Closes #2805

See merge request GNOME/gtk!1993
This commit is contained in:
Matthias Clasen 2020-05-31 13:02:51 +00:00
commit e8e28b61db

View File

@ -2238,7 +2238,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 _ */