mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 04:48:10 +02:00
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:
parent
a5f22dbc5d
commit
2ca172ebea
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue