diff options
Diffstat (limited to 'src/timedate/timedatectl.c')
-rw-r--r-- | src/timedate/timedatectl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c index 6a4bbdbb48..d9767ba564 100644 --- a/src/timedate/timedatectl.c +++ b/src/timedate/timedatectl.c @@ -77,7 +77,7 @@ static int print_status_info(const StatusInfo *i) { /* Save the old $TZ */ tz = getenv("TZ"); if (tz) - old_tz = strdupa(tz); + old_tz = strdupa_safe(tz); /* Set the new $TZ */ tz_colon = strjoina(":", isempty(i->timezone) ? "UTC" : i->timezone); |