X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-index-message.cc;fp=notmuch-index-message.cc;h=5c73825ba2f48e3d7964994d497e104c1a6464a0;hp=60370b62b99621f6d8ec1eea491d0b5b96c003ad;hb=914df660c423c078df20390a4b647edbe8fb712a;hpb=d643f7d7762e358bf7c5611635a36d27e6db9afa diff --git a/notmuch-index-message.cc b/notmuch-index-message.cc index 60370b62..5c73825b 100644 --- a/notmuch-index-message.cc +++ b/notmuch-index-message.cc @@ -253,6 +253,9 @@ skip_re_in_subject (const char *subject) { const char *s = subject; + if (subject == NULL) + return NULL; + while (*s) { while (*s && isspace (*s)) s++;