diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-10 01:06:52 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-10 01:06:52 +0100 |
commit | d36b70313666b334cc01c0c2344070341f7d0eb3 (patch) | |
tree | 22f98896993a1a0a6079b1784a149deffd2b237f | |
parent | 5763192abfdfafa2ca7c14c7d48393f67f28eff7 (diff) |
bus: fix rewinding in gvariant messages
-rw-r--r-- | src/libsystemd-bus/bus-message.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c index 35a4678600..55fb47b552 100644 --- a/src/libsystemd-bus/bus-message.c +++ b/src/libsystemd-bus/bus-message.c @@ -4150,6 +4150,9 @@ _public_ int sd_bus_message_rewind(sd_bus_message *m, int complete) { m->rindex = c->begin; } + c->offset_index = 0; + c->item_size = c->n_offsets > 0 ? c->offsets[0] : c->end; + return !isempty(c->signature); } |