summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2017-05-08 14:42:34 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2017-05-08 15:01:39 +0200
commitaaaefd827e900f83770985660d936fda6a18ee6a (patch)
tree0aa974a67b5328b45a280967484474ec5abfb7e2
parent00df57a0667018b678ce8d03c6226a4e239eafaf (diff)
downloadNetworkManager-aaaefd827e900f83770985660d936fda6a18ee6a.tar.gz
ip-tunnel: fix coverity warnings
src/devices/nm-device-ip-tunnel.c:257:8: warning: Branch condition evaluates to a garbage value if (local4) ^~~~~~ src/devices/nm-device-ip-tunnel.c:264:8: warning: Branch condition evaluates to a garbage value if (remote4) ^~~~~~~
-rw-r--r--src/devices/nm-device-ip-tunnel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/nm-device-ip-tunnel.c b/src/devices/nm-device-ip-tunnel.c
index 1e62654108..53b7cf4e5f 100644
--- a/src/devices/nm-device-ip-tunnel.c
+++ b/src/devices/nm-device-ip-tunnel.c
@@ -124,8 +124,8 @@ update_properties_from_ifindex (NMDevice *device, int ifindex)
NMDeviceIPTunnel *self = NM_DEVICE_IP_TUNNEL (device);
NMDeviceIPTunnelPrivate *priv = NM_DEVICE_IP_TUNNEL_GET_PRIVATE (self);
int parent_ifindex = 0;
- in_addr_t local4, remote4;
- struct in6_addr local6, remote6;
+ in_addr_t local4 = 0, remote4 = 0;
+ struct in6_addr local6 = { 0 }, remote6 = { 0 };
guint8 ttl = 0, tos = 0, encap_limit = 0;
gboolean pmtud = FALSE;
guint32 flow_label = 0;