From 950c5b0ad48fdcf9b6eec4bd870d81caeeb14f49 Mon Sep 17 00:00:00 2001 From: Marenz Date: Sun, 15 May 2011 20:37:14 +0200 Subject: [PATCH] Forgot else clause for setParseFlags --- d/include/psyc/parse.d | 2 ++ include/psyc/parse.h | 2 ++ 2 files changed, 4 insertions(+) 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; }