From 2ca172ebeacfbe9ece1fc925b1983aaae6e6d78e Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 10 Oct 2019 15:02:45 +0200 Subject: [PATCH] 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. --- clients/common/nm-client-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/common/nm-client-utils.c b/clients/common/nm-client-utils.c index c0099fe0d..305a2de36 100644 --- a/clients/common/nm-client-utils.c +++ b/clients/common/nm-client-utils.c @@ -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))