summaryrefslogtreecommitdiff
path: root/ext/syck/syck.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/syck/syck.c')
-rw-r--r--ext/syck/syck.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/syck/syck.c b/ext/syck/syck.c
index 36e95fd..89aa804 100644
--- a/ext/syck/syck.c
+++ b/ext/syck/syck.c
@@ -136,6 +136,7 @@ syck_parser_reset_cursor( SyckParser *p )
p->cursor = NULL;
p->lineptr = NULL;
+ p->linectptr = NULL;
p->token = NULL;
p->toktmp = NULL;
p->marker = NULL;
@@ -397,6 +398,7 @@ syck_move_tokens( SyckParser *p )
p->toktmp -= count;
p->limit -= count;
p->lineptr -= count;
+ p->linectptr -= count;
}
return skip;
}
@@ -408,6 +410,7 @@ syck_check_limit( SyckParser *p, long len )
{
p->cursor = p->buffer;
p->lineptr = p->buffer;
+ p->linectptr = p->buffer;
p->marker = p->buffer;
}
p->limit = p->buffer + len;