mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 09:56:51 +03:00
bus: fix rewind logic
This commit is contained in:
parent
c4ef331782
commit
e4bb80a076
@ -4152,7 +4152,7 @@ _public_ int sd_bus_message_rewind(sd_bus_message *m, int complete) {
|
||||
}
|
||||
|
||||
c->offset_index = 0;
|
||||
c->item_size = c->n_offsets > 0 ? c->offsets[0] : c->end;
|
||||
c->item_size = (c->n_offsets > 0 ? c->offsets[0] : c->end) - c->begin;
|
||||
|
||||
return !isempty(c->signature);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user