Skip to content

Commit

Permalink
ipv4: Initialize cork->opt using NULL not 0.
Browse files Browse the repository at this point in the history
Noticed by Joe Perches.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 6, 2011
1 parent b80d722 commit 7065272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/ip_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ struct sk_buff *ip_make_skb(struct sock *sk,

cork.flags = 0;
cork.addr = 0;
cork.opt = 0;
cork.opt = NULL;
err = ip_setup_cork(sk, &cork, ipc, rtp);
if (err)
return ERR_PTR(err);
Expand Down

0 comments on commit 7065272

Please sign in to comment.