From: Richard Russon Date: Tue, 10 Oct 2017 09:27:08 +0000 (+0100) Subject: fix: crash using uncolor (#833) X-Git-Tag: neomutt-20171013~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5605c02bd13eb18fdebb9c35fee1d53d868aa3d;p=neomutt fix: crash using uncolor (#833) Using 'uncolor' on the last 'color' added would cause a crash. --- diff --git a/color.c b/color.c index d16833034..7785a13ca 100644 --- a/color.c +++ b/color.c @@ -470,7 +470,7 @@ static void do_uncolor(struct Buffer *buf, struct Buffer *s, { *do_cache = 1; } - mutt_debug(1, "Freeing pattern \"%s\" from ColorList\n", tmp->pattern); + mutt_debug(1, "Freeing pattern \"%s\" from ColorList\n", buf->data); if (tmp) STAILQ_REMOVE_AFTER(cl, tmp, entries); else