Skip to content

Commit

Permalink
refactor: Fix bugprone-string-constructor warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed Oct 30, 2023
1 parent 6391644 commit fa56067
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/.clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Checks: '
-*,
bitcoin-*,
bugprone-argument-comment,
bugprone-string-constructor,
bugprone-use-after-move,
bugprone-lambda-function-name,
misc-unused-using-decls,
Expand Down
4 changes: 2 additions & 2 deletions src/wallet/db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit fa56067

Please sign in to comment.