chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b4bec1
)
bus-util: avoid infinite loop
author
Tom Gundersen
<teg@jklm.no>
Wed, 30 Oct 2013 22:21:46 +0000
(23:21 +0100)
committer
Tom Gundersen
<teg@jklm.no>
Wed, 30 Oct 2013 22:23:10 +0000
(23:23 +0100)
src/libsystemd-bus/bus-util.c
patch
|
blob
|
history
diff --git
a/src/libsystemd-bus/bus-util.c
b/src/libsystemd-bus/bus-util.c
index 5a0e0cd5034aede9329443453115fb8dca178609..063228877622888940e25d1e042ede435307aebf 100644
(file)
--- 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;