summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-05-14 10:03:49 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-05-15 23:07:02 +0900
commit62cf0851430b4c49fe6b91cfad7de858dda782a2 (patch)
tree9d639a0e74ee3954feb73d432d506485112cfa3f
parent01adcd691d9d7ab95db8bb02313a454404b566d6 (diff)
downloadsystemd-62cf0851430b4c49fe6b91cfad7de858dda782a2.tar.gz
timesync: use NULL instead of empty string
-rw-r--r--src/timesync/timesyncd-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timesync/timesyncd-bus.c b/src/timesync/timesyncd-bus.c
index 1932043fb9..6243debfeb 100644
--- a/src/timesync/timesyncd-bus.c
+++ b/src/timesync/timesyncd-bus.c
@@ -56,7 +56,7 @@ static int property_get_current_server_name(
assert(bus);
assert(reply);
- return sd_bus_message_append(reply, "s", *s ? (*s)->string : "");
+ return sd_bus_message_append(reply, "s", *s ? (*s)->string : NULL);
}
static int property_get_current_server_address(