platform: fix -Werror=maybe-uninitialized in _new_from_nl_link()

Fixes: 0827d4c2e4
This commit is contained in:
Thomas Haller
2018-07-09 11:36:43 +02:00
parent b200e5d8ed
commit 67f50f64d9

View File

@@ -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