We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6391644 commit fa56067Copy full SHA for fa56067
src/.clang-tidy
@@ -2,6 +2,7 @@ Checks: '
2
-*,
3
bitcoin-*,
4
bugprone-argument-comment,
5
+bugprone-string-constructor,
6
bugprone-use-after-move,
7
bugprone-lambda-function-name,
8
misc-unused-using-decls,
src/wallet/db.cpp
@@ -129,9 +129,9 @@ bool IsSQLiteFile(const fs::path& path)
129
130
file.close();
131
132
- // Check the magic, see https://sqlite.org/fileformat2.html
+ // Check the magic, see https://sqlite.org/fileformat.html
133
std::string magic_str(magic, 16);
134
- if (magic_str != std::string("SQLite format 3", 16)) {
+ if (magic_str != std::string{"SQLite format 3\000", 16}) {
135
return false;
136
}
137
0 commit comments