sd_bus_message_peek_type(property, &tp, &cnt);
if (all || cnt) {
- const char *str;
+ const char *str;
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;