Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/tcpdump avoid warnings from gcc about x possibly be...



details:   https://anonhg.NetBSD.org/src/rev/fa917812bdef
branches:  trunk
changeset: 477114:fa917812bdef
user:      sjg <sjg%NetBSD.org@localhost>
date:      Mon Oct 11 12:40:12 1999 +0000

description:
avoid warnings from gcc about x possibly being uninitialized

diffstat:

 usr.sbin/tcpdump/print-telnet.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 00d6d352bddb -r fa917812bdef usr.sbin/tcpdump/print-telnet.c
--- a/usr.sbin/tcpdump/print-telnet.c   Mon Oct 11 12:37:43 1999 +0000
+++ b/usr.sbin/tcpdump/print-telnet.c   Mon Oct 11 12:40:12 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print-telnet.c,v 1.1 1999/09/30 14:49:13 sjg Exp $     */
+/*     $NetBSD: print-telnet.c,v 1.2 1999/10/11 12:40:12 sjg Exp $     */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -47,7 +47,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: print-telnet.c,v 1.1 1999/09/30 14:49:13 sjg Exp $");
+__RCSID("$NetBSD: print-telnet.c,v 1.2 1999/10/11 12:40:12 sjg Exp $");
 #endif
 
 #include <sys/param.h>
@@ -90,6 +90,7 @@
        u_char  *osp;
 
        off = 0;
+       x = 0;
        
        while (length > 0 && *sp == IAC) {
                osp = (u_char *) sp;



Home | Main Index | Thread Index | Old Index