mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
refactor: Fix bugprone-string-constructor warning
This commit is contained in:
@@ -2,6 +2,7 @@ Checks: '
|
||||
-*,
|
||||
bitcoin-*,
|
||||
bugprone-argument-comment,
|
||||
bugprone-string-constructor,
|
||||
bugprone-use-after-move,
|
||||
bugprone-lambda-function-name,
|
||||
misc-unused-using-decls,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user