X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lib%2Fmessage.cc;h=320901f77eb010a1cab4502c79db6faccbc6d49c;hb=5505d55515594025fe319c5150fdb360b0ffcd60;hp=978de066d4185ee991794bfad1f50140dd9424d6;hpb=869986f725b3dfa0260671e4a1256b8c8c072864;p=obsolete%2Fnotmuch-old diff --git a/lib/message.cc b/lib/message.cc index 978de066..320901f7 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -788,7 +788,9 @@ notmuch_message_get_tags (notmuch_message_t *message) * possible to modify the message tags (which talloc_unlink's the * current list from the message) while still iterating because * the iterator will keep the current list alive. */ - talloc_reference (message, message->tag_list); + if (!talloc_reference (message, message->tag_list)) + return NULL; + return tags; }