diff options
author | David S. Miller <davem@davemloft.net> | 2011-05-06 19:01:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-06 19:01:15 -0400 |
commit | 706527280ec38fcdcd0466f10b607105fd23801b (patch) | |
tree | 96b1b0c20d214d87fd9d93b9b4c3d8645183705a /net/ipv4/ip_output.c | |
parent | b80d72261aec5e763a76497eba5fddc84833a154 (diff) |
ipv4: Initialize cork->opt using NULL not 0.
Noticed by Joe Perches.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_output.c')
-rw-r--r-- | net/ipv4/ip_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index 5f5fe4f742b9..0a2f49a442e8 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c | |||
@@ -1419,7 +1419,7 @@ struct sk_buff *ip_make_skb(struct sock *sk, | |||
1419 | 1419 | ||
1420 | cork.flags = 0; | 1420 | cork.flags = 0; |
1421 | cork.addr = 0; | 1421 | cork.addr = 0; |
1422 | cork.opt = 0; | 1422 | cork.opt = NULL; |
1423 | err = ip_setup_cork(sk, &cork, ipc, rtp); | 1423 | err = ip_setup_cork(sk, &cork, ipc, rtp); |
1424 | if (err) | 1424 | if (err) |
1425 | return ERR_PTR(err); | 1425 | return ERR_PTR(err); |