[PATCH -mm] ip_conntrack_ftp gcc 4.1 warning fix

From: Daniel Walker
Date: Tue May 09 2006 - 22:58:20 EST


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@xxxxxxxxxx>

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/