aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.c
diff options
context:
space:
mode:
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/notmuch.c b/notmuch.c
index f620f58d..ca30b521 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -264,9 +264,10 @@ add_files_recursive (notmuch_database_t *notmuch,
/* success */
case NOTMUCH_STATUS_SUCCESS:
state->added_messages++;
- if (state->callback)
+ if (state->callback) {
(state->callback) (message);
- notmuch_message_destroy (message);
+ notmuch_message_destroy (message);
+ }
break;
/* Non-fatal issues (go on to next file) */
case NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID: