mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
test: fix uninitialized variable use in T562-lib-database
Fix a copy paste error of using the boolean ret as a notmuch_status_t, and uninitialized.
This commit is contained in:
parent
a1b1fe85c2
commit
fe449f779d
1 changed files with 1 additions and 3 deletions
|
@ -154,11 +154,9 @@ test_expect_equal_file EXPECTED OUTPUT
|
|||
test_begin_subtest "upgrade a closed db"
|
||||
cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
|
||||
{
|
||||
notmuch_bool_t ret;
|
||||
|
||||
EXPECT0(notmuch_database_close (db));
|
||||
stat = notmuch_database_upgrade (db, NULL, NULL);
|
||||
printf ("%d\n", ret == NOTMUCH_STATUS_SUCCESS);
|
||||
printf ("%d\n", stat == NOTMUCH_STATUS_SUCCESS);
|
||||
}
|
||||
EOF
|
||||
cat <<EOF > EXPECTED
|
||||
|
|
Loading…
Reference in a new issue