utils: correct caching of can_show_graphics

It's being forgotten unless it's also static. Spotted by Thomas in the
code that was copied from here.
This commit is contained in:
Lubomir Rintel
2019-10-10 15:02:45 +02:00
parent a5f22dbc5d
commit 2ca172ebea

View File

@@ -437,7 +437,7 @@ static gboolean
can_show_graphics (void) can_show_graphics (void)
{ {
static gboolean can_show_graphics_set = FALSE; static gboolean can_show_graphics_set = FALSE;
gboolean can_show_graphics = TRUE; static gboolean can_show_graphics = TRUE;
char *locale_str; char *locale_str;
if (G_LIKELY (can_show_graphics_set)) if (G_LIKELY (can_show_graphics_set))