[systemd-devel] [PATCH 2/7] bus: fix bus_message_read_strv
Marc-Antoine Perennou
Marc-Antoine at Perennou.com
Wed Nov 6 20:48:59 PST 2013
message_read_strv_extend returns 0 on success
---
src/libsystemd-bus/bus-message.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c
index 0fd9aa1..16b2201 100644
--- a/src/libsystemd-bus/bus-message.c
+++ b/src/libsystemd-bus/bus-message.c
@@ -4438,7 +4438,7 @@ _public_ int sd_bus_message_read_strv(sd_bus_message *m, char ***l) {
assert_return(l, -EINVAL);
r = bus_message_read_strv_extend(m, &strv);
- if (r <= 0) {
+ if (r < 0) {
strv_free(strv);
return r;
}
--
1.8.4.2
More information about the systemd-devel
mailing list