X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fthread.cc;h=4c49f980c7b81ee5cb92198d68bf65b8173e8cba;hp=45425056034fca555d8c679d670800872813ba13;hb=0fc788460276f0e08c3ccae0a779f96125624a8d;hpb=2a0a13a433e24076453da38f18d7d6053af34287 diff --git a/lib/thread.cc b/lib/thread.cc index 45425056..4c49f980 100644 --- a/lib/thread.cc +++ b/lib/thread.cc @@ -251,8 +251,8 @@ _thread_add_message (notmuch_thread_t *thread, term != NULL; term = term->next) { - /* We ignore initial 'K'. */ - if (strcmp(tag, (term->string + 1)) == 0) { + /* Check for an empty string, and then ignore initial 'K'. */ + if (*(term->string) && strcmp(tag, (term->string + 1)) == 0) { message_excluded = TRUE; break; }