]> granicus.if.org Git - ipset/commitdiff
netfilter:ipset: fix the compile warning in ip_set_create
authorShan Wei <shanwei@cn.fujitsu.com>
Fri, 4 Mar 2011 07:34:35 +0000 (15:34 +0800)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 4 Mar 2011 08:54:38 +0000 (09:54 +0100)
net/netfilter/ipset/ip_set_core.c:615: warning: ?clash? may be used uninitialized in this function

Signed-off-by: shanw <shanw@shanw-desktop.(none)>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
kernel/net/netfilter/ipset/ip_set_core.c

index 2f7df3a184b2ee428de0cc421e3495c43a14ff7e..b4c5600fe44dbba370f4d81f4b93abb0c9e7bd8a 100644 (file)
@@ -617,7 +617,7 @@ ip_set_create(struct sock *ctnl, struct sk_buff *skb,
              const struct nlmsghdr *nlh,
              const struct nlattr * const attr[])
 {
-       struct ip_set *set, *clash;
+       struct ip_set *set, *clash = NULL;
        ip_set_id_t index = IPSET_INVALID_ID;
        struct nlattr *tb[IPSET_ATTR_CREATE_MAX+1] = {};
        const char *name, *typename;