From: guy Date: Fri, 15 Jun 2007 19:49:15 +0000 (+0000) Subject: Pick up from NetBSD a change to squelch a "should not happen" X-Git-Tag: tcpdump-3.9.7~13 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/6be506f5842fdf5fd6f81786cfd8cfe657adf64c Pick up from NetBSD a change to squelch a "should not happen" uninitialized reference found by Coverity. --- diff --git a/smbutil.c b/smbutil.c index 100b7831..86cbb8dd 100644 --- a/smbutil.c +++ b/smbutil.c @@ -12,7 +12,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/smbutil.c,v 1.36.2.1 2005-04-21 04:09:58 guy Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/smbutil.c,v 1.36.2.2 2007-06-15 19:49:15 guy Exp $"; #endif #include @@ -745,6 +745,9 @@ smb_fdata1(const u_char *buf, const char *fmt, const u_char *maxbuf, t = interpret_long_date(buf); buf += 8; break; + default: + t = 0; + break; } if (t != 0) { lt = localtime(&t);