Преглед изворни кода

ipv4: Initialize cork->opt using NULL not 0.

Noticed by Joe Perches.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller пре 14 година
родитељ
комит
706527280e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      net/ipv4/ip_output.c

+ 1 - 1
net/ipv4/ip_output.c

@@ -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);