chiark / gitweb /
dbus: fix return value of dispatch_rqueue()
authorLennart Poettering <lennart@poettering.net>
Wed, 2 Oct 2013 17:37:30 +0000 (19:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 2 Oct 2013 17:45:12 +0000 (19:45 +0200)
src/libsystemd-bus/sd-bus.c

index 3f766fb..db0880f 100644 (file)
@@ -1215,11 +1215,11 @@ static int dispatch_rqueue(sd_bus *bus, sd_bus_message **m) {
                 if (r == 0)
                         return ret;
 
-                r = 1;
+                ret = 1;
         } while (!z);
 
         *m = z;
-        return 1;
+        return ret;
 }
 
 int sd_bus_send(sd_bus *bus, sd_bus_message *m, uint64_t *serial) {