From: Lennart Poettering Date: Wed, 17 Aug 2016 17:03:44 +0000 (+0200) Subject: bus-util: treat an empty string as a NULL X-Git-Tag: v232~256^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b83b8a4dcd429e6d14f2251fffdc7eae215c1f5;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index b7dda3ee4d4..af676db3ea0 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;