mirror of
https://github.com/systemd/systemd.git
synced 2025-01-25 10:04:04 +03:00
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:
parent
bdf97b8ad8
commit
0b83b8a4dc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user