summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
Diffstat (limited to 'Parser')
-rw-r--r--Parser/parsetok.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
index 24bda83..5f51f6a 100644
--- a/Parser/parsetok.c
+++ b/Parser/parsetok.c
@@ -36,6 +36,8 @@ PyParser_ParseString(char *s, grammar *g, int start, perrdetail *err_ret)
err_ret->lineno = 0;
err_ret->offset = 0;
err_ret->text = NULL;
+ err_ret->token = -1;
+ err_ret->expected = -1;
if ((tok = PyTokenizer_FromString(s)) == NULL) {
err_ret->error = E_NOMEM;