diff options
Diffstat (limited to 'devices/gdevtifs.c')
-rw-r--r-- | devices/gdevtifs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/devices/gdevtifs.c b/devices/gdevtifs.c index 722640aa6..2a52d3b73 100644 --- a/devices/gdevtifs.c +++ b/devices/gdevtifs.c @@ -404,8 +404,13 @@ int tiff_set_fields_for_printer(gx_device_printer *pdev, time_t t; char dateTimeValue[20]; +#ifdef CLUSTER + memset(&t, 0, sizeof(t)); + memset(&tms, 0, sizeof(tms)); +#else time(&t); tms = *localtime(&t); +#endif gs_sprintf(dateTimeValue, "%04d:%02d:%02d %02d:%02d:%02d", tms.tm_year + 1900, tms.tm_mon + 1, tms.tm_mday, tms.tm_hour, tms.tm_min, tms.tm_sec); |