From: David Bremner Date: Sun, 16 Aug 2020 17:04:36 +0000 (-0300) Subject: test: fix uninitialized variable use in T562-lib-database X-Git-Tag: archive/debian/0.31_rc1-1~3 X-Git-Url: https://git.cworth.org/git?p=notmuch;a=commitdiff_plain;h=fe449f779d2a5ab5243a315a12f4a85b625dc078 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. --- diff --git a/test/T562-lib-database.sh b/test/T562-lib-database.sh index d6097418..dd4f2566 100755 --- a/test/T562-lib-database.sh +++ b/test/T562-lib-database.sh @@ -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 < EXPECTED