summaryrefslogtreecommitdiff
path: root/src/shared/bus-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-08-17 19:03:44 +0200
committerLennart Poettering <lennart@poettering.net>2016-08-22 16:14:21 +0200
commit0b83b8a4dcd429e6d14f2251fffdc7eae215c1f5 (patch)
treeab1d2fcd018fe5f9a21ca24cf676356e224c876a /src/shared/bus-util.c
parentbdf97b8ad84a66e0687222ac139603468162d785 (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 systemd.
Diffstat (limited to 'src/shared/bus-util.c')
-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 b7dda3ee4d..af676db3ea 100644
--- a/src/shared/bus-util.c
+++ b/src/shared/bus-util.c
@@ -1025,7 +1025,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;