Fixed cppcheck errors

This commit is contained in:
SChernykh
2023-12-23 11:22:03 +01:00
parent bc36be1e58
commit f98d2e652a
5 changed files with 8 additions and 0 deletions
+1
View File
@@ -1393,6 +1393,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);