mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
notmuch-index-message: Avoid crashing when a message has no references.
It's obviously an innocent-enough message, and the right thing is so easy to do.
This commit is contained in:
parent
3922bb4cfd
commit
c0da89a8e0
1 changed files with 3 additions and 0 deletions
|
@ -215,6 +215,9 @@ add_terms_references (Xapian::Document doc,
|
|||
|
||||
refs = g_mime_object_get_header (GMIME_OBJECT (message), "references");
|
||||
|
||||
if (refs == NULL)
|
||||
return;
|
||||
|
||||
while (*refs) {
|
||||
while (*refs && isspace (*refs))
|
||||
refs++;
|
||||
|
|
Loading…
Reference in a new issue