mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Clean up possibly-uninitialized-variable warnings reported by gcc 4.x.
This commit is contained in:
@ -334,6 +334,8 @@ PGTYPESdate_defmt_asc(date *d, char *fmt, char *str)
|
||||
char *str_copy;
|
||||
struct tm tm;
|
||||
|
||||
tm.tm_year = tm.tm_mon = tm.tm_mday = 0; /* keep compiler quiet */
|
||||
|
||||
if (!d || !str || !fmt)
|
||||
{
|
||||
errno = PGTYPES_DATE_ERR_EARGS;
|
||||
|
Reference in New Issue
Block a user