forked from osmocom/wireshark
Output err msg if strptime fails converting input time;
svn path=/trunk/; revision=22852
This commit is contained in:
parent
8b247815f3
commit
f891c2cc6a
|
@ -754,8 +754,11 @@ parse_preamble (void)
|
|||
if (subsecs != NULL) {
|
||||
/* Get the long time from the tm structure */
|
||||
ts_sec = (gint32)mktime( &timecode );
|
||||
} else
|
||||
} else {
|
||||
fprintf (stderr, "Failed to parse '%s' using time format '%s'; using 00:00:00 (midnight) as default\n",
|
||||
packet_preamble, ts_fmt);
|
||||
ts_sec = -1; /* we failed to parse it */
|
||||
}
|
||||
|
||||
/* This will ensure incorrectly parsed dates get set to zero */
|
||||
if ( -1 == ts_sec )
|
||||
|
|
Loading…
Reference in New Issue