diff --git a/d/include/psyc/parse.d b/d/include/psyc/parse.d index 5027ce1..52aa4da 100644 --- a/d/include/psyc/parse.d +++ b/d/include/psyc/parse.d @@ -159,6 +159,8 @@ struct ParseState if (flags & ParseFlag.START_AT_CONTENT) this.part = Part.CONTENT; + else + this.part = 0; } /** diff --git a/include/psyc/parse.h b/include/psyc/parse.h index 79687b5..1f1dcce 100644 --- a/include/psyc/parse.h +++ b/include/psyc/parse.h @@ -283,6 +283,8 @@ void psyc_setParseFlags (psycParseState *state, uint8_t flags) if (flags & PSYC_PARSE_START_AT_CONTENT) state->part = PSYC_PART_CONTENT; + else + state->part = 0; }