netifd: Explicitly zero initialize variables
[project/netifd.git] / proto.c
diff --git a/proto.c b/proto.c
index f7d27aad68dc009d44a6be41490c963267c2fdc3..48dd213bb4b779fc042190e6505f5f0d065033f5 100644 (file)
--- a/proto.c
+++ b/proto.c
@@ -174,7 +174,7 @@ parse_static_address_option(struct interface *iface, struct blob_attr *attr,
                }
                addr->index = n_addr;
                n_addr++;
-               vlist_add(&iface->proto_ip.addr, &addr->node, &addr->flags);
+               vlist_add(&iface->proto_ip.addr, &addr->node, addr);
        }
 
        return n_addr;
@@ -275,7 +275,7 @@ parse_address_list(struct interface *iface, struct blob_attr *attr, bool v6,
 
                addr->index = n_addr;
                n_addr++;
-               vlist_add(&iface->proto_ip.addr, &addr->node, &addr->flags);
+               vlist_add(&iface->proto_ip.addr, &addr->node, addr);
        }
 
        return n_addr;
@@ -416,7 +416,7 @@ proto_apply_static_ip_settings(struct interface *iface, struct blob_attr *attr)
        unsigned int netmask = 32;
        bool ip6deprecated;
        int n_v4 = 0, n_v6 = 0;
-       struct in_addr bcast = {}, ptp = {};
+       struct in_addr bcast = {0,}, ptp = {0,};
 
        blobmsg_parse(proto_ip_attributes, __OPT_MAX, tb, blob_data(attr), blob_len(attr));