summaryrefslogtreecommitdiff
path: root/packet-smpp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-03-10 01:02:06 +0000
committerGuy Harris <guy@alum.mit.edu>2002-03-10 01:02:06 +0000
commitc9c0a8373bdb34fcdb02bb7caa77bcc91205c0f6 (patch)
tree2ec0aef3fdde0511aa86e817f527ff5cf3abcd3c /packet-smpp.c
parent9f6c9ba35bd38ffaf3dd02850a4c26789be629dc (diff)
downloadwireshark-c9c0a8373bdb34fcdb02bb7caa77bcc91205c0f6.tar.gz
Initialize the "tm_isdst" field of a "struct tm" to -1 before passing it
to "mktime()". svn path=/trunk/; revision=4907
Diffstat (limited to 'packet-smpp.c')
-rw-r--r--packet-smpp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/packet-smpp.c b/packet-smpp.c
index aca9b78a6c..b1c8f52b15 100644
--- a/packet-smpp.c
+++ b/packet-smpp.c
@@ -2,7 +2,7 @@
* Routines for Short Message Peer to Peer dissection
* Copyright 2001, Tom Uijldert <tom.uijldert@cmg.nl>
*
- * $Id: packet-smpp.c,v 1.4 2002/01/21 07:36:43 guy Exp $
+ * $Id: packet-smpp.c,v 1.5 2002/03/10 01:02:06 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -603,6 +603,7 @@ smpp_mktime(char *datestr, time_t *secs, int *nsecs)
r_time.tm_hour = 10 * (datestr[6] - '0') + (datestr[7] - '0');
r_time.tm_min = 10 * (datestr[8] - '0') + (datestr[9] - '0');
r_time.tm_sec = 10 * (datestr[10] - '0') + (datestr[11] - '0');
+ r_time.tm_isdst = -1;
*secs = mktime(&r_time);
*nsecs = (datestr[12] - '0') * 100000000;
t_diff = (10 * (datestr[13] - '0') + (datestr[14] - '0')) * 900;