]> The Tcpdump Group git mirrors - tcpdump/commitdiff
From David Binderman <[email protected]>, in a Red Hat Bugzilla
authorguy <guy>
Fri, 10 Jan 2003 08:11:00 +0000 (08:11 +0000)
committerguy <guy>
Fri, 10 Jan 2003 08:11:00 +0000 (08:11 +0000)
entry for tcpdump: initialize "optlen" so as to eliminate a compiler
warning.

CREDITS
print-ip6opts.c

diff --git a/CREDITS b/CREDITS
index 24551462394f34d69e6dd4df52f563a510df6c2f..088f60f5a401c5ae0b65ea50fcf5ec0268ca26d6 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -32,6 +32,7 @@ Additional people who have contributed patches:
        Crist J. Clark                  <[email protected]>
        Daniel Hagerty                  <[email protected]>
        Darren Reed                     <[email protected]>
+       David Binderman                 <[email protected]>
        David Young                     <[email protected]>
        Francisco Matias Cuenca-Acuna   <[email protected]>
        Frank Volf                      <[email protected]>
index bf410cd53e7793c87cf66fc5ffd22ffa3474df33..75252a62ff85611e7d972df074ef40261944f7d3 100644 (file)
@@ -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)