mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
lib/n_d_index_file: check return value from _n_m_add_filename
Ignoring this return value seems like a bad idea in general, and in particular it has been hiding one or more bugs related to handling long directory names.
This commit is contained in:
parent
828a004921
commit
084e60d54a
1 changed files with 3 additions and 1 deletions
|
@ -529,7 +529,9 @@ notmuch_database_index_file (notmuch_database_t *notmuch,
|
|||
goto DONE;
|
||||
}
|
||||
|
||||
_notmuch_message_add_filename (message, filename);
|
||||
ret = _notmuch_message_add_filename (message, filename);
|
||||
if (ret)
|
||||
goto DONE;
|
||||
|
||||
if (is_new || is_ghost) {
|
||||
_notmuch_message_add_term (message, "type", "mail");
|
||||
|
|
Loading…
Reference in a new issue