Skip to content

Commit

Permalink
[BUGFIX] Do no print an error if no settings passed to the stats calc…
Browse files Browse the repository at this point in the history
…ulator
  • Loading branch information
hasherezade committed Jul 15, 2023
1 parent 5b6215b commit efdaf3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stats/stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ namespace pesieve {
if (!data_size || !data_buf) {
return false;
}
if (!stats.fillSettings(settings)) {
if (settings && !stats.fillSettings(settings)) {
std::cerr << "Settings initialization failed!\n";
}
stats.setStartOffset(buffer.getStartOffset(skipPadding));
Expand Down

0 comments on commit efdaf3a

Please sign in to comment.