From: guy Date: Fri, 10 Jan 2003 08:11:00 +0000 (+0000) Subject: From David Binderman , in a Red Hat Bugzilla X-Git-Tag: tcpdump-3.8-bp~232 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/8b4a9e519e41a5294f0b72c2bb0791750d1e8efe From David Binderman , in a Red Hat Bugzilla entry for tcpdump: initialize "optlen" so as to eliminate a compiler warning. --- diff --git a/CREDITS b/CREDITS index 24551462..088f60f5 100644 --- a/CREDITS +++ b/CREDITS @@ -32,6 +32,7 @@ Additional people who have contributed patches: Crist J. Clark Daniel Hagerty Darren Reed + David Binderman David Young Francisco Matias Cuenca-Acuna Frank Volf diff --git a/print-ip6opts.c b/print-ip6opts.c index bf410cd5..75252a62 100644 --- a/print-ip6opts.c +++ b/print-ip6opts.c @@ -33,7 +33,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-ip6opts.c,v 1.13 2002-12-11 07:14:03 guy Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ip6opts.c,v 1.14 2003-01-10 08:11:00 guy Exp $"; #endif #ifdef INET6 @@ -139,7 +139,7 @@ void ip6_opt_print(const u_char *bp, int len) { int i; - int optlen; + int optlen = 0; for (i = 0; i < len; i += optlen) { if (bp[i] == IP6OPT_PAD1)