From 6c1508b871965b2eba46d477e81a9c4e85b2bd00 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Wed, 20 Nov 2013 16:18:37 +0100 Subject: bus: fix error-path in bus_map_all_properties() We shouldn't return positive integers on errors. Fix the typo by removing the negation. --- src/libsystemd-bus/bus-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libsystemd-bus/bus-util.c b/src/libsystemd-bus/bus-util.c index 33bdf38171..ed6fdc473a 100644 --- 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); -- cgit v1.2.3-54-g00ecf