aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-11-20 21:02:11 +0100
committerGravatar Carl Worth <cworth@cworth.org>2009-11-20 21:02:11 +0100
commit656e4c413d84984dcc5fbd8016907ed03c343cb8 (patch)
treef12f9719d6553b385a2b0d175b5bdd2ae6703043 /lib
parent52292c548512214fd3dd205edb4ca9cf7955f2b3 (diff)
notmuch_database_add_message: Add missing error-value propagation.
Thanks to Mike Hommey for doing the analysis that led to noticing that this was missing.
Diffstat (limited to 'lib')
-rw-r--r--lib/database.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/database.cc b/lib/database.cc
index 294247e2..58a350d2 100644
--- a/lib/database.cc
+++ b/lib/database.cc
@@ -940,8 +940,11 @@ notmuch_database_add_message (notmuch_database_t *notmuch,
talloc_free (message_id);
- if (message == NULL)
+ if (message == NULL) {
+ ret = COERCE_STATUS (private_status,
+ "Unexpected status value from _notmuch_message_create_for_message_id");
goto DONE;
+ }
/* Is this a newly created message object? */
if (private_status == NOTMUCH_PRIVATE_STATUS_NO_DOCUMENT_FOUND) {