diff options
| author | David Bremner <david@tethera.net> | 2023-12-06 07:39:24 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2023-12-06 07:39:24 -0400 |
| commit | 52a5446150a7449b62bce27c3e96c1a503821279 (patch) | |
| tree | eb0e289c987389331705fc1d3a1cf99f8eb2a1b2 | |
| parent | b49377e5093e1c8af801e1065ef086a0cd15625a (diff) | |
| parent | b97cd90040a8353e6f94c317af2020f3d6e67a2e (diff) | |
Merge branch 'release'
| -rw-r--r-- | lib/open.cc | 5 | ||||
| -rwxr-xr-x | test/T055-path-config.sh | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/open.cc b/lib/open.cc index 005872dc..463e38bf 100644 --- a/lib/open.cc +++ b/lib/open.cc @@ -249,6 +249,11 @@ _choose_database_path (notmuch_database_t *notmuch, return NOTMUCH_STATUS_NO_DATABASE; } + if (*message) { + free (*message); + *message = NULL; + } + return NOTMUCH_STATUS_SUCCESS; } diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh index efc79e8b..1feb5624 100755 --- a/test/T055-path-config.sh +++ b/test/T055-path-config.sh @@ -374,6 +374,11 @@ EOF notmuch new test_expect_equal "$(xapian-metadata get ${XAPIAN_PATH} version)" 3 ;; + home_mail|maildir_env) + test_begin_subtest "No errors from config list ($config)" + notmuch config list 2>OUTPUT 1>/dev/null + test_expect_equal_file /dev/null OUTPUT + ;; *) backup_database test_begin_subtest ".notmuch without xapian/ handled gracefully ($config)" |
