[PATCH 01/11] lib: actually return failures from notmuch_message_tags_to_maildir_flags
Jani Nikula
jani at nikula.org
Mon Sep 22 02:54:52 PDT 2014
The function takes great care to preserve the first error status it
encounters, yet fails to return that status to the caller. Fix it.
---
lib/message.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/message.cc b/lib/message.cc
index 68f7e68..7e82548 100644
--- a/lib/message.cc
+++ b/lib/message.cc
@@ -1497,7 +1497,7 @@ notmuch_message_tags_to_maildir_flags (notmuch_message_t *message)
talloc_free (to_set);
talloc_free (to_clear);
- return NOTMUCH_STATUS_SUCCESS;
+ return status;
}
notmuch_status_t
--
1.7.2.5
More information about the notmuch
mailing list