lkml.org 
[lkml]   [2006]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -mm] ip_conntrack_ftp gcc 4.1 warning fix
Fixes the following warning,

net/ipv4/netfilter/ip_conntrack_ftp.c: In function 'help':
net/ipv4/netfilter/ip_conntrack_ftp.c:298: warning: 'matchoff' may be used uninitialized in this function
net/ipv4/netfilter/ip_conntrack_ftp.c:298: warning: 'matchlen' may be used uninitialized in this function

Signed-Off-By: Daniel Walker <dwalker@mvista.com>

Index: linux-2.6.16/net/ipv4/netfilter/ip_conntrack_ftp.c
===================================================================
--- linux-2.6.16.orig/net/ipv4/netfilter/ip_conntrack_ftp.c
+++ linux-2.6.16/net/ipv4/netfilter/ip_conntrack_ftp.c
@@ -295,7 +295,8 @@ static int help(struct sk_buff **pskb,
int ret;
u32 seq, array[6] = { 0 };
int dir = CTINFO2DIR(ctinfo);
- unsigned int matchlen, matchoff;
+ unsigned int matchlen = 0;
+ unsigned int matchoff = 0;
struct ip_ct_ftp_master *ct_ftp_info = &ct->help.ct_ftp_info;
struct ip_conntrack_expect *exp;
unsigned int i;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-05-10 05:01    [W:0.025 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site