diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2019-10-31 10:33:10 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2019-10-31 10:33:53 +0000 |
commit | c64d06deea998199a0e30180fd884286b4b2256c (patch) | |
tree | d41f0952251dc4e87c1d2c134e049fcffee94886 /devices/gdevtifs.c | |
parent | bf72f1a3dd5392ee8291e3b1518a0c2c5dc6ba39 (diff) | |
download | ghostpdl-c64d06deea998199a0e30180fd884286b4b2256c.tar.gz |
Nobble various uses of "time" in the code in CLUSTER builds.
This causes the bjccolor device at least to give indeterminate
results. Nobbling the rest won't hurt.
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); |