From 67f50f64d9e07969fffc8702d1872e2cd5febe95 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 9 Jul 2018 11:36:43 +0200 Subject: [PATCH] platform: fix -Werror=maybe-uninitialized in _new_from_nl_link() Fixes: 0827d4c2e402b8c82d58e053e922d9d22679b960 --- src/platform/nm-linux-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 4020cdc83c..d91e56a5eb 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -2268,7 +2268,7 @@ _new_from_nl_link (NMPlatform *platform, const NMPCache *cache, struct nlmsghdr } if (obj->link.type == NM_LINK_TYPE_WIREGUARD) { - nm_auto_nmpobj NMPObject *lnk_data_now; + nm_auto_nmpobj NMPObject *lnk_data_now = NULL; /* The WireGuard kernel module does not yet send link update * notifications, so we don't actually update the cache. For