From: Fletcher T. Penney Date: Wed, 15 Mar 2017 18:33:33 +0000 (-0400) Subject: FIXED: Fix potential crash X-Git-Tag: 6.0.0-rc2^2~22^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27786eb78c8fae16306ec1b22229661285c446e3;p=multimarkdown FIXED: Fix potential crash --- diff --git a/Sources/libMultiMarkdown/writer.c b/Sources/libMultiMarkdown/writer.c index 1e882f6..2e75fc8 100644 --- a/Sources/libMultiMarkdown/writer.c +++ b/Sources/libMultiMarkdown/writer.c @@ -1304,7 +1304,8 @@ void process_definition_block(mmd_engine * e, token * block) { break; } label->type = TEXT_EMPTY; - label->next->type = TEXT_EMPTY; + if (label->next) + label->next->type = TEXT_EMPTY; strip_leading_whitespace(label, e->dstr->str); break; case BLOCK_DEF_LINK: