1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-20 15:22:23 +03:00

Fix occasional uninitialized variable fractional seconds

in DecodeTimeOnly(). Only present when seconds are not specified
 for input.
This commit is contained in:
Thomas G. Lockhart
1997-10-25 05:18:17 +00:00
parent 9f99e4c6b6
commit 2c1557a2ff

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.42 1997/10/17 05:36:01 thomas Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.43 1997/10/25 05:18:17 thomas Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -3112,8 +3112,8 @@ DecodeTimeOnly(char *field[], int ftype[], int nf, int *dtype, struct tm * tm, d
tm->tm_hour = 0; tm->tm_hour = 0;
tm->tm_min = 0; tm->tm_min = 0;
tm->tm_sec = 0; tm->tm_sec = 0;
tm->tm_isdst = -1; /* don't know daylight savings time status tm->tm_isdst = -1; /* don't know daylight savings time status apriori */
* apriori */ *fsec = 0;
fmask = DTK_DATE_M; fmask = DTK_DATE_M;