sd-bus: make sure dispatch_rqueue() initializes return parameter on all types of success

Let's make sure our own code follows coding style and initializes all
return values on all types of success (and leaves it uninitialized in
all types of failure).
This commit is contained in:
Lennart Poettering 2019-01-17 18:15:37 +01:00
parent e593b6a87a
commit c0bc4ec5cc
1 changed files with 3 additions and 1 deletions

View File

@ -1865,8 +1865,10 @@ static int dispatch_rqueue(sd_bus *bus, bool hint_priority, int64_t priority, sd
r = bus_read_message(bus, hint_priority, priority);
if (r < 0)
return r;
if (r == 0)
if (r == 0) {
*m = NULL;
return ret;
}
ret = 1;
}