Fix offset
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 1 Sep 2014 06:21:23 +0000 (08:21 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 1 Sep 2014 06:21:23 +0000 (08:21 +0200)
src/client.c

index 0ba9f32..772da62 100644 (file)
@@ -623,7 +623,7 @@ static void client_record_ingest(struct client *cl)
     xdoc = client_get_xdoc(cl, cl->record_offset + 1);
     if (xdoc)
     {
-        int offset = cl->record_offset++;
+        int offset = ++cl->record_offset;
         if (cl->session)
         {
             NMEM nmem = nmem_create();