diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-10-02 19:37:30 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-10-02 19:45:12 +0200 |
commit | 2e8d788c2f90d062f208f8c57a97e7b33cb29f7d (patch) | |
tree | 1a64ccc98b2741549061f7c24b1adfe610eb7ee5 /src/libsystemd-bus/sd-bus.c | |
parent | f5f6e41a9ee008e1632f79ab3fa20beef7c2b613 (diff) |
dbus: fix return value of dispatch_rqueue()
Diffstat (limited to 'src/libsystemd-bus/sd-bus.c')
-rw-r--r-- | src/libsystemd-bus/sd-bus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c index 3f766fb519..db0880f21c 100644 --- a/src/libsystemd-bus/sd-bus.c +++ b/src/libsystemd-bus/sd-bus.c @@ -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) { |