Skip to content

Commit

Permalink
pdbfmt: suppress cppcheck false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre authored and poire-z committed Jul 28, 2024
1 parent 4cca9b7 commit bb2c7e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crengine/src/pdbfmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ class PDBFile : public LVNamedStream {
}
lUInt32 have = UNPACK_BUF_SIZE - z.avail_out;
uncompressed_buf = cr_realloc(uncompressed_buf, uncompressed_size + have);
memcpy(uncompressed_buf + uncompressed_size, tmp, have );
memcpy(uncompressed_buf + uncompressed_size, tmp, have ); // cppcheck-suppress uninitvar
uncompressed_size += have;
if (ret == Z_STREAM_END) {
break;
Expand Down

0 comments on commit bb2c7e6

Please sign in to comment.