From: David S. Miller Date: Tue, 21 Mar 2006 06:36:01 +0000 (-0800) Subject: [DCCP]: Fix uninitialized var warnings in dccp_parse_options(). X-Git-Tag: v2.6.17-rc1~1175^2~56 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb9504964d32f69e4381dc8895eeb8e81a32af72;p=linux-2.6 [DCCP]: Fix uninitialized var warnings in dccp_parse_options(). Signed-off-by: David S. Miller --- diff --git a/net/dccp/options.c b/net/dccp/options.c index da16760164..6e85550cc6 100644 --- a/net/dccp/options.c +++ b/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)); + opt = len = 0; while (opt_ptr != opt_end) { opt = *opt_ptr++; len = 0;