a4b143
From 26a238ce83143c6bac8afa4639ba4dcfd9d48ca7 Mon Sep 17 00:00:00 2001
a4b143
From: Lennart Poettering <lennart@poettering.net>
a4b143
Date: Wed, 2 Oct 2013 19:37:30 +0200
a4b143
Subject: [PATCH] dbus: fix return value of dispatch_rqueue()
a4b143
a4b143
---
a4b143
 src/libsystemd-bus/sd-bus.c | 4 ++--
a4b143
 1 file changed, 2 insertions(+), 2 deletions(-)
a4b143
a4b143
diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c
a4b143
index 3f766fb..db0880f 100644
a4b143
--- a/src/libsystemd-bus/sd-bus.c
a4b143
+++ b/src/libsystemd-bus/sd-bus.c
a4b143
@@ -1215,11 +1215,11 @@ static int dispatch_rqueue(sd_bus *bus, sd_bus_message **m) {
a4b143
                 if (r == 0)
a4b143
                         return ret;
a4b143
 
a4b143
-                r = 1;
a4b143
+                ret = 1;
a4b143
         } while (!z);
a4b143
 
a4b143
         *m = z;
a4b143
-        return 1;
a4b143
+        return ret;
a4b143
 }
a4b143
 
a4b143
 int sd_bus_send(sd_bus *bus, sd_bus_message *m, uint64_t *serial) {