mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Add const qualifier to tzn returned by timestamp2tm()
The tzn value might come from tm->tm_zone, which libc declares as const, so it's prudent that the upper layers know about this as well.
This commit is contained in:
@ -459,7 +459,7 @@ typedef struct TmToChar
|
||||
{
|
||||
struct pg_tm tm; /* classic 'tm' struct */
|
||||
fsec_t fsec; /* fractional seconds */
|
||||
char *tzn; /* timezone */
|
||||
const char *tzn; /* timezone */
|
||||
} TmToChar;
|
||||
|
||||
#define tmtcTm(_X) (&(_X)->tm)
|
||||
|
Reference in New Issue
Block a user