From: Thomas G. Lockhart Date: Sat, 19 Dec 1998 03:23:18 +0000 (+0000) Subject: Fix problem with bad reference to tzn in GetCurrentAbsoluteTime(). X-Git-Tag: REL6_4_2~7 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=2e763e3e5febdc751bd390f59853d74c896f4254;p=users%2Fhanada%2Fpostgres.git Fix problem with bad reference to tzn in GetCurrentAbsoluteTime(). Already was done in the main tree. --- diff --git a/src/backend/utils/adt/nabstime.c b/src/backend/utils/adt/nabstime.c index fb1f6adf03..024d6ea190 100644 --- a/src/backend/utils/adt/nabstime.c +++ b/src/backend/utils/adt/nabstime.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.46.2.1 1998/12/14 00:11:46 thomas Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.46.2.2 1998/12/19 03:23:18 thomas Exp $ * *------------------------------------------------------------------------- */ @@ -75,8 +75,7 @@ GetCurrentAbsoluteTime(void) strftime(CTZName, MAXTZLEN, "%Z", tm); #endif /* XXX FreeBSD man pages indicate that this should work - thomas 1998-12-12 */ - if (tzn != NULL) - strcpy(tzn, tm->tm_zone); + strcpy(CTZName, tm->tm_zone); #elif defined(HAVE_INT_TIMEZONE) tm = localtime(&now);