[systemd-devel] [PATCH 2/3] bus: fix bus_message_read_strv
Marc-Antoine Perennou
Marc-Antoine at Perennou.com
Wed Nov 6 00:59:21 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 698c7c4..f228b44 100644
--- a/src/libsystemd-bus/bus-message.c
+++ b/src/libsystemd-bus/bus-message.c
@@ -4420,7 +4420,7 @@ 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