mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-10 05:11:20 +02:00
refactor: Fix bugprone-string-constructor warning
This commit is contained in:
parent
6391644b66
commit
fa56067a8f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user