chiark / gitweb /
bus: fix rewinding in gvariant messages
authorLennart Poettering <lennart@poettering.net>
Tue, 10 Dec 2013 00:06:52 +0000 (01:06 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 10 Dec 2013 00:06:52 +0000 (01:06 +0100)
src/libsystemd-bus/bus-message.c

index 35a4678..55fb47b 100644 (file)
@@ -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);
 }