summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-08-17 19:03:44 +0200
committerSven Eden <yamakuzure@gmx.net>2017-07-05 08:50:51 +0200
commitc6fa3209cf539e5c1ada090ec6ffa97148f82972 (patch)
tree9580d5316e4d154484658628624f9f6d50b54136 /src/shared
parentafc4586231642a2f611fc6e0bdc29318da8a165b (diff)
bus-util: treat an empty string as a NULL
Instead of ignoring empty strings retrieved via the bus, treat them as NULL, as it's customary in elogind.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/bus-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c
index 2af4dde34..62ce245f7 100644
--- a/src/shared/bus-util.c
+++ b/src/shared/bus-util.c
@@ -1029,7 +1029,7 @@ static int map_basic(sd_bus *bus, const char *member, sd_bus_message *m, sd_bus_
break;
if (isempty(s))
- break;
+ s = NULL;
r = free_and_strdup(p, s);
break;