diff options
author | Thomas G. Lockhart <lockhart@fourpalms.org> | 1997-10-25 05:18:17 +0000 |
---|---|---|
committer | Thomas G. Lockhart <lockhart@fourpalms.org> | 1997-10-25 05:18:17 +0000 |
commit | 2c1557a2ffa2a422f39061f85d53f32996e4c35a (patch) | |
tree | 10e2a0812d2691acbad1f2fa5ee829d4c9caa716 /src | |
parent | 9f99e4c6b6c67be97b892e4606bcdf35cf9e081b (diff) | |
download | postgresql-2c1557a2ffa2a422f39061f85d53f32996e4c35a.tar.gz postgresql-2c1557a2ffa2a422f39061f85d53f32996e4c35a.zip |
Fix occasional uninitialized variable fractional seconds
in DecodeTimeOnly(). Only present when seconds are not specified
for input.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/adt/dt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/adt/dt.c b/src/backend/utils/adt/dt.c index 944762b51aa..070e25230fb 100644 --- a/src/backend/utils/adt/dt.c +++ b/src/backend/utils/adt/dt.c @@ -7,7 +7,7 @@ * * * 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_min = 0; tm->tm_sec = 0; - tm->tm_isdst = -1; /* don't know daylight savings time status - * apriori */ + tm->tm_isdst = -1; /* don't know daylight savings time status apriori */ + *fsec = 0; fmask = DTK_DATE_M; |