From: Michael Göhler Date: Fri, 26 Dec 2014 20:44:18 +0000 (+0100) Subject: fixed duplicated reference in header-only files, #66, #67 X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=7b546f2a11460bed09b61116c8be38f8decf0440;p=smdp.git fixed duplicated reference in header-only files, #66, #67 --- diff --git a/src/parser.c b/src/parser.c index 5b08be4..b400610 100644 --- a/src/parser.c +++ b/src/parser.c @@ -192,6 +192,10 @@ deck_t *markdown_load(FILE *input) { // adjust counts deck->headers += hc; deck->slide->lines -= hc; + } else { + + // remove header from deck + deck->header = NULL; } }