aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ucp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-03-10 03:07:16 +0000
committerGuy Harris <guy@alum.mit.edu>2002-03-10 03:07:16 +0000
commit7d1dfae50d082de4f734e9bd7f3bf98c933691c3 (patch)
tree5bc340b7dd267537451bfbe0c5e7880aa2d39ccc /packet-ucp.c
parentc9c0a8373bdb34fcdb02bb7caa77bcc91205c0f6 (diff)
Initialize the "tm_isdst" field of a "struct tm" to -1 before passing it
to "mktime()". svn path=/trunk/; revision=4908
Diffstat (limited to 'packet-ucp.c')
-rw-r--r--packet-ucp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/packet-ucp.c b/packet-ucp.c
index 20b3aef6f5..aa2f6b1113 100644
--- a/packet-ucp.c
+++ b/packet-ucp.c
@@ -2,7 +2,7 @@
* Routines for Universal Computer Protocol dissection
* Copyright 2001, Tom Uijldert <tom.uijldert@cmg.nl>
*
- * $Id: packet-ucp.c,v 1.13 2002/02/15 11:24:45 guy Exp $
+ * $Id: packet-ucp.c,v 1.14 2002/03/10 03:07:16 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -681,6 +681,7 @@ ucp_mktime(char *datestr)
r_time.tm_min = 10 * (datestr[8] - '0') + (datestr[9] - '0');
if (datestr[10])
r_time.tm_sec = 10 * (datestr[10] - '0') + (datestr[11] - '0');
+ r_time.tm_isdst = -1;
return mktime(&r_time);
}