Przeglądaj źródła

[DCCP]: Fix uninitialized var warnings in dccp_parse_options().

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 19 lat temu
rodzic
commit
fb9504964d
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      net/dccp/options.c

+ 1 - 0
net/dccp/options.c

@@ -78,6 +78,7 @@ int dccp_parse_options(struct sock *sk, struct sk_buff *skb)
 
 
 	memset(opt_recv, 0, sizeof(*opt_recv));
 	memset(opt_recv, 0, sizeof(*opt_recv));
 
 
+	opt = len = 0;
 	while (opt_ptr != opt_end) {
 	while (opt_ptr != opt_end) {
 		opt   = *opt_ptr++;
 		opt   = *opt_ptr++;
 		len   = 0;
 		len   = 0;