From: Yu Watanabe Date: Mon, 6 Mar 2023 13:02:43 +0000 (+0900) Subject: time-util: drop redundant call of tzset() X-Git-Tag: v254-rc1~1112 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=84d0dc53ac3f3356890e9ca0aee5b9af7c0743be;p=thirdparty%2Fsystemd.git time-util: drop redundant call of tzset() It is also called at the beginning of `parse_timestamp_maybe_with_tz()`. --- diff --git a/src/basic/time-util.c b/src/basic/time-util.c index 26fd1bae653..30f093fff91 100644 --- a/src/basic/time-util.c +++ b/src/basic/time-util.c @@ -994,8 +994,6 @@ int parse_timestamp(const char *t, usec_t *ret) { _exit(EXIT_FAILURE); } - tzset(); - shared->return_value = parse_timestamp_maybe_with_tz(t, tz_offset, /* valid_tz = */ true, &shared->usec); _exit(EXIT_SUCCESS);