Messages in this thread Patch in this message | | | Date | Tue, 9 May 2006 19:55:58 -0700 | From | Daniel Walker <> | 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/
| |