mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 19:30:07 +01: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)
|
||||
{
|
||||
static gboolean can_show_graphics_set = FALSE;
|
||||
gboolean can_show_graphics = TRUE;
|
||||
static gboolean can_show_graphics = TRUE;
|
||||
char *locale_str;
|
||||
|
||||
if (G_LIKELY (can_show_graphics_set))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue