summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-09-19 14:19:45 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-09-19 14:28:08 +0200
commit36f08256261226b7020a65058224da31896ca885 (patch)
tree777fd93b4dab6913ac4c73a33c88ba4e60c1503c
parent57780600dc9b71a9b189d741d1cb988eb5edd4e7 (diff)
downloadNetworkManager-36f08256261226b7020a65058224da31896ca885.tar.gz
devices/acd-manager: avoid uninitialzied variable use
src/devices/nm-acd-manager.c:419:31: error: variable 'info' is uninitialized when used here [-Werror,-Wuninitialized] nm_utils_inet4_ntop (info->address, NULL),
-rw-r--r--src/devices/nm-acd-manager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/devices/nm-acd-manager.c b/src/devices/nm-acd-manager.c
index 52e9200a2f..70c17373d2 100644
--- a/src/devices/nm-acd-manager.c
+++ b/src/devices/nm-acd-manager.c
@@ -415,8 +415,7 @@ nm_acd_manager_announce_addresses (NMAcdManager *self)
r = acd_init (self);
if (r) {
- _LOGW ("couldn't init ACD for announcing address %s on interface '%s': %s",
- nm_utils_inet4_ntop (info->address, NULL),
+ _LOGW ("couldn't init ACD for announcing addresses on interface '%s': %s",
nm_platform_link_get_name (NM_PLATFORM_GET, priv->ifindex),
acd_error_to_string (r));
return;