]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
timesync: use NULL instead of empty string
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 May 2018 01:03:49 +0000 (10:03 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 15 May 2018 14:07:02 +0000 (23:07 +0900)
src/timesync/timesyncd-bus.c

index 1932043fb95c9ed439ac5def6a8d0b229bc44e51..6243debfebe8de9d398aed50da4ce9cf43641e24 100644 (file)
@@ -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(