Skip to content

Commit fa56067

Browse files
author
MarcoFalke
committed
refactor: Fix bugprone-string-constructor warning
1 parent 6391644 commit fa56067

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/.clang-tidy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Checks: '
22
-*,
33
bitcoin-*,
44
bugprone-argument-comment,
5+
bugprone-string-constructor,
56
bugprone-use-after-move,
67
bugprone-lambda-function-name,
78
misc-unused-using-decls,

src/wallet/db.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ bool IsSQLiteFile(const fs::path& path)
129129

130130
file.close();
131131

132-
// Check the magic, see https://sqlite.org/fileformat2.html
132+
// Check the magic, see https://sqlite.org/fileformat.html
133133
std::string magic_str(magic, 16);
134-
if (magic_str != std::string("SQLite format 3", 16)) {
134+
if (magic_str != std::string{"SQLite format 3\000", 16}) {
135135
return false;
136136
}
137137

0 commit comments

Comments
 (0)