summaryrefslogtreecommitdiff
path: root/src/date.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/date.c')
-rw-r--r--src/date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/date.c b/src/date.c
index 3cfcc6265..e94de6013 100644
--- a/src/date.c
+++ b/src/date.c
@@ -385,7 +385,7 @@ main (int argc, char **argv)
/* POSIX says that `date -u' is equivalent to setting the TZ
environment variable, so this option should do nothing other
than setting TZ. */
- if (putenv ("TZ=UTC0") != 0)
+ if (putenv (bad_cast ("TZ=UTC0")) != 0)
xalloc_die ();
TZSET;
break;