diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd-bus/bus-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-util.c b/src/libsystemd-bus/bus-util.c index 5a0e0cd503..0632288776 100644 --- a/src/libsystemd-bus/bus-util.c +++ b/src/libsystemd-bus/bus-util.c @@ -539,7 +539,7 @@ int bus_generic_print_property(const char *name, sd_bus_message *property, bool printf("%s=", name); - while(sd_bus_message_read_basic(property, SD_BUS_TYPE_STRING, &str)) { + while(sd_bus_message_read_basic(property, SD_BUS_TYPE_STRING, &str) > 0) { printf("%s%s", space ? " " : "", str); space = true; |