diff options
author | David Bremner <david@tethera.net> | 2020-07-08 21:17:00 -0300 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2020-07-20 08:45:15 -0300 |
commit | b21f0fcb6abc4cf399c708c45e2e33a39a820a9e (patch) | |
tree | 971ca2676415a172c00187d2b2804d4486bc2c82 /lib | |
parent | 7aaf6cbe9ac20d99046d1bdf260fe0fa72519760 (diff) |
test: add regression test for notmuch_message_has_maildir_flag
This passes the NULL return inside _ensure_maildir_flags does not
break anything. Probably this should be handled more explicitely.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/message.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/message.cc b/lib/message.cc index 4e1be986..bb4b2fa1 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -1732,7 +1732,8 @@ _ensure_maildir_flags (notmuch_message_t *message, bool force) message->maildir_flags = NULL; } } - + /* n_m_get_filenames returns NULL for errors, which terminates the + * loop */ for (filenames = notmuch_message_get_filenames (message); notmuch_filenames_valid (filenames); notmuch_filenames_move_to_next (filenames)) { |