[PATCH -mm] ip_conntrack_ftp gcc 4.1 warning fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux