From 606703209f79bc1b631882ee1ba0668f0ef74bf7 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 20 Jan 2022 22:33:59 +0100 Subject: [PATCH] libnm/tests: fix maybe-uninitialized warning in "test-libnmc-setting" (cherry picked from commit 87bce61bad6263755ebe0e2b2586023e29639703) (cherry picked from commit aadf0fb64f491f94b2771058621dc140c562b62b) (cherry picked from commit 688c67a24f7a2ebb58c8086555c57097853433b6) --- clients/common/tests/test-clients-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/common/tests/test-clients-common.c b/clients/common/tests/test-clients-common.c index 4336f0d533..7f5b6dcb2c 100644 --- a/clients/common/tests/test-clients-common.c +++ b/clients/common/tests/test-clients-common.c @@ -161,7 +161,7 @@ test_client_meta_check(void) static void test_client_import_wireguard_test0(void) { - gs_unref_object NMConnection *connection; + gs_unref_object NMConnection *connection = NULL; NMSettingWireGuard * s_wg; NMSettingIPConfig * s_ip4; NMSettingIPConfig * s_ip6;