aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/db.cpp
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-10-27 15:24:20 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-10-30 14:59:17 +0100
commitfa56067a8f56701cbda95595592e74934af7d1cd (patch)
tree7c9ba2cad13d4e4b61661404e4c8da7075b058f4 /src/wallet/db.cpp
parent6391644b660740f479b915a9b34b0f287baaaac4 (diff)
downloadbitcoin-fa56067a8f56701cbda95595592e74934af7d1cd.tar.xz
refactor: Fix bugprone-string-constructor warning
Diffstat (limited to 'src/wallet/db.cpp')
-rw-r--r--src/wallet/db.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp
index 0ee39d2b5a..ea06767e9b 100644
--- a/src/wallet/db.cpp
+++ b/src/wallet/db.cpp
@@ -129,9 +129,9 @@ bool IsSQLiteFile(const fs::path& path)
file.close();
- // Check the magic, see https://sqlite.org/fileformat2.html
+ // Check the magic, see https://sqlite.org/fileformat.html
std::string magic_str(magic, 16);
- if (magic_str != std::string("SQLite format 3", 16)) {
+ if (magic_str != std::string{"SQLite format 3\000", 16}) {
return false;
}