From: Fletcher T. Penney Date: Thu, 2 Mar 2017 22:57:06 +0000 (-0500) Subject: FIXED: Potential bug X-Git-Tag: 0.4.0-b^2~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3755c07995e36693c17cd324223d81ad5d5746e7;p=multimarkdown FIXED: Potential bug --- diff --git a/Sources/libMultiMarkdown/writer.c b/Sources/libMultiMarkdown/writer.c index d6b7ab2..637e417 100644 --- a/Sources/libMultiMarkdown/writer.c +++ b/Sources/libMultiMarkdown/writer.c @@ -1235,7 +1235,8 @@ void process_definition_block(mmd_engine * e, token * block) { case BLOCK_DEF_GLOSSARY: // Strip leading '?' from term f = footnote_new(e->dstr->str, label, block->child, false); - memmove(f->clean_text, &(f->clean_text)[1],strlen(f->clean_text)); + if (f && f->clean_text) + memmove(f->clean_text, &(f->clean_text)[1],strlen(f->clean_text)); stack_push(e->glossary_stack, f); break;