From 0eee94a264d8ced0310e87d28be7ac0efa84bb0c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 23 Jun 2016 17:34:11 -0500 Subject: [PATCH] netdev: Fix some uninitialized warnings --- src/netdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/netdev.c b/src/netdev.c index 24b601b6..e44ac3b0 100644 --- a/src/netdev.c +++ b/src/netdev.c @@ -1181,10 +1181,10 @@ static void netdev_get_interface_callback(struct l_genl_msg *msg, struct l_genl_attr attr; uint16_t type, len; const void *data; - const char *ifname; - uint16_t ifname_len; + const char *ifname = NULL; + uint16_t ifname_len = 0; const uint8_t *ifaddr; - const uint32_t *ifindex, *iftype; + const uint32_t *ifindex = NULL, *iftype = NULL; struct netdev *netdev; struct wiphy *wiphy = NULL; struct ifinfomsg *rtmmsg;