aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorShan Wei <shanwei@cn.fujitsu.com>2011-03-08 09:37:27 -0500
committerPatrick McHardy <kaber@trash.net>2011-03-08 09:37:27 -0500
commit9846ada138accc63994b57ebdfa76e3e137729e2 (patch)
tree08297f4c6cf814c858d2cefe28ece9f0a0842470 /net/netfilter
parent8a80c79a776d1b1b54895314ffaf53d0c7604c80 (diff)
netfilter: ipset: fix the compile warning in ip_set_create
net/netfilter/ipset/ip_set_core.c:615: warning: ‘clash’ may be used uninitialized in this function Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com> Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/ipset/ip_set_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipset/ip_set_core.c b/net/netfilter/ipset/ip_set_core.c
index 8b1a54c1e400..618a615acc9d 100644
--- a/net/netfilter/ipset/ip_set_core.c
+++ b/net/netfilter/ipset/ip_set_core.c
@@ -612,7 +612,7 @@ ip_set_create(struct sock *ctnl, struct sk_buff *skb,
612 const struct nlmsghdr *nlh, 612 const struct nlmsghdr *nlh,
613 const struct nlattr * const attr[]) 613 const struct nlattr * const attr[])
614{ 614{
615 struct ip_set *set, *clash; 615 struct ip_set *set, *clash = NULL;
616 ip_set_id_t index = IPSET_INVALID_ID; 616 ip_set_id_t index = IPSET_INVALID_ID;
617 struct nlattr *tb[IPSET_ATTR_CREATE_MAX+1] = {}; 617 struct nlattr *tb[IPSET_ATTR_CREATE_MAX+1] = {};
618 const char *name, *typename; 618 const char *name, *typename;