lib: fix error return bug with n_d_set_config.

The catch block either needs to return, or the function needs to
return "status". Choose the latter for consistency with
n_d_get_config.
This commit is contained in:
David Bremner 2020-07-19 09:51:03 -03:00
parent f6d74be840
commit b268c8c071
2 changed files with 1 additions and 2 deletions

View file

@ -60,7 +60,7 @@ notmuch_database_set_config (notmuch_database_t *notmuch,
_notmuch_database_log (notmuch, "Error: A Xapian exception occurred setting metadata: %s\n",
error.get_msg ().c_str ());
}
return NOTMUCH_STATUS_SUCCESS;
return status;
}
static notmuch_status_t

View file

@ -357,7 +357,6 @@ EOF
test_expect_equal_file EXPECTED OUTPUT
test_begin_subtest "set config in closed database"
test_subtest_known_broken
cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
{
EXPECT0(notmuch_database_close (db));