summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-03-22 11:29:35 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-03-22 20:08:16 +0100
commit47b0b65766229a18921a3ce831ef708ef408a34c (patch)
tree1d302c46b7bc6b3ef6a46e894370d7b2adeca301 /src
parentf035bb1b7a5900439640f267db881c60d042e450 (diff)
downloadsystemd-47b0b65766229a18921a3ce831ef708ef408a34c.tar.gz
test-calendarspec: do not convert timezone "" to ":"
I *think* it doesn't actually make any difference, because ":" will be ignored. 437f48a471f51ac9dd2697ee3b848a71b4f101df added prefixing with ":", but didn't take into account the fact that we also use "" with a different meaning than NULL here. But let's restore the original behaviour of specifying the empty string.
Diffstat (limited to 'src')
-rw-r--r--src/test/test-calendarspec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-calendarspec.c b/src/test/test-calendarspec.c
index 152ce879f8..c62e6860cf 100644
--- a/src/test/test-calendarspec.c
+++ b/src/test/test-calendarspec.c
@@ -44,7 +44,7 @@ static void _test_next(int line, const char *input, const char *new_tz, usec_t a
if (old_tz)
old_tz = strdupa(old_tz);
- if (new_tz)
+ if (!isempty(new_tz))
new_tz = strjoina(":", new_tz);
assert_se(set_unset_env("TZ", new_tz, true) == 0);