From 9e9e2c124a30c6d6530cbd0e4539387a26a791e2 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Fri, 2 Sep 2016 14:33:01 +0100 Subject: [PATCH] proposed fix for clearing labels Debian bug #832971 -- The use claimed he couldn't reset labels. I couldn't repeat the problem using his config. He offered a patch that he claimed fixed his problem. Only one part of the patch actually did anything (and only in a section of code dealing with SETTING labels). --- headers.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/headers.c b/headers.c index 392448821..130b9b27f 100644 --- a/headers.c +++ b/headers.c @@ -283,9 +283,7 @@ static int label_message(HEADER *hdr, char *new) mutt_free_list(&hdr->env->labels); } - if (new == NULL) - hdr->env->labels = NULL; - else + if ((new != NULL) && (*new != '\0')) { char *last, *label; -- 2.40.0