Fixed cppcheck errors

This commit is contained in:
SChernykh
2023-12-23 11:22:03 +01:00
parent 1d4aa3478d
commit df2a81d76d
6 changed files with 9 additions and 0 deletions
+1
View File
@@ -1518,6 +1518,7 @@ void p2pool::api_update_stats_mod()
}
char last_block_found_buf[log::Stream::BUF_SIZE + 1];
// cppcheck-suppress uninitvar
log::Stream s(last_block_found_buf);
s << last_block_found_hash << '\0';
memcpy(last_block_found_buf + 4, "...", 4);