diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp index 008966f2e20..400b9dc44fb 100644 --- a/src/wallet/db.cpp +++ b/src/wallet/db.cpp @@ -52,7 +52,7 @@ std::vector> ListDatabases(const fs::path& wall // as a wallet. if (IsBDBFile(it->path())) { paths.emplace_back(fs::path(), "bdb"); - } else if (IsSQLiteFile(SQit->path())) { + } else if (IsSQLiteFile(it->path())) { paths.emplace_back(fs::path(), "sqlite"); } } else if (IsBDBFile(it->path())) {