From 8aead609b336b70bd779bb679cc993310a301990 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 25 Nov 2016 20:16:05 +0100 Subject: [PATCH] main: fix compiler warning about uninitialized auto variable in _init_nm_debug() Fixes: c7d2e1f3bc97f7061e3d0e8d20027513919adb26 --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 5d016a906d..20e6f30ff3 100644 --- a/src/main.c +++ b/src/main.c @@ -87,6 +87,7 @@ _set_g_fatal_warnings (void) static void _init_nm_debug (NMConfig *config) { + gs_free char *debug = NULL; const guint D_RLIMIT_CORE = 1; const guint D_FATAL_WARNINGS = 2; GDebugKey keys[] = { @@ -95,7 +96,6 @@ _init_nm_debug (NMConfig *config) }; guint flags; const char *env = getenv ("NM_DEBUG"); - gs_free char *debug; debug = nm_config_data_get_value (nm_config_get_data_orig (config), NM_CONFIG_KEYFILE_GROUP_MAIN,