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:
d7726e5
)
bus: fix error-path in bus_map_all_properties()
author
David Herrmann
<dh.herrmann@gmail.com>
Wed, 20 Nov 2013 15:18:37 +0000
(16:18 +0100)
committer
David Herrmann
<dh.herrmann@gmail.com>
Wed, 20 Nov 2013 15:19:58 +0000
(16:19 +0100)
We shouldn't return positive integers on errors. Fix the typo by removing
the negation.
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 33bdf3817173b864bc47a0b80cb3c9e851a4a08e..ed6fdc473ae705c2ca56f639aefd3c7eb49b8af7 100644
(file)
--- a/
src/libsystemd-bus/bus-util.c
+++ b/
src/libsystemd-bus/bus-util.c
@@
-919,7
+919,7
@@
int bus_map_all_properties(sd_bus *bus,
} else {
r = sd_bus_message_skip(m, "v");
if (r < 0)
- return
-
r;
+ return r;
}
r = sd_bus_message_exit_container(m);