Skip to content

Commit

Permalink
Fix a bug in log_entry constructor (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
greensky00 authored Aug 10, 2023
1 parent a4e8ff0 commit 188947b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/log_entry.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ log_entry::log_entry(ulong term,
, has_crc32_(has_crc32)
, crc32_(crc32)
{
if (!buff_ && !has_crc32 && compute_crc) {
if (buff_ && !has_crc32 && compute_crc) {
has_crc32_ = true;
crc32_ = crc32_8( buff->data_begin(),
buff->size(),
crc32_ = crc32_8( buff_->data_begin(),
buff_->size(),
0 );
}
}
Expand Down

0 comments on commit 188947b

Please sign in to comment.