From: Fletcher T. Penney Date: Sat, 18 Mar 2017 14:09:16 +0000 (-0400) Subject: FIXED: Fix bug in HR parsing X-Git-Tag: 6.0.0-rc2^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14024b006fd74c2681d09d1938b9f847577dbe83;p=multimarkdown FIXED: Fix bug in HR parsing --- diff --git a/Sources/libMultiMarkdown/mmd.c b/Sources/libMultiMarkdown/mmd.c index ff00331..76cfbbb 100644 --- a/Sources/libMultiMarkdown/mmd.c +++ b/Sources/libMultiMarkdown/mmd.c @@ -482,7 +482,8 @@ void mmd_assign_line_type(mmd_engine * e, token * line) { case DASH_M: if (t->type == line->child->type) { t = t->next; - temp_short += t->len; + if (t) + temp_short += t->len; } else { temp_short = 0; t = NULL;