]> git.cworth.org Git - notmuch/commitdiff
test: fix uninitialized variable use in T562-lib-database
authorDavid Bremner <david@tethera.net>
Sun, 16 Aug 2020 17:04:36 +0000 (14:04 -0300)
committerDavid Bremner <david@tethera.net>
Sun, 16 Aug 2020 17:04:36 +0000 (14:04 -0300)
Fix a copy paste error of using the boolean ret as a notmuch_status_t,
and uninitialized.

test/T562-lib-database.sh

index d60974183046fed7b9b3bc9a3b76b6c231ebac77..dd4f2566a9922bf758209623064cf5d98dc0bec2 100755 (executable)
@@ -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