chiark / gitweb /
bus-util: treat an empty string as a NULL
[elogind.git] / src / shared / bus-util.c
index 2af4dde34a1a5f0d6a878eba18631f258c88f721..62ce245f7ab8d1d600f2ce1aed849283d04b5397 100644 (file)
@@ -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;