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.
This commit is contained in:
Lennart Poettering 2016-08-17 19:03:44 +02:00
parent bdf97b8ad8
commit 0b83b8a4dc

View file

@ -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;