initialize boolean (reported by coverity)

This commit is contained in:
Juergen Spitzmueller 2024-09-07 12:55:10 +02:00
parent e685d31f5a
commit d3123c16f7
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ void Statistics::update(CursorData const & cur, bool skip)
{
// early exit if the buffer has not changed since last time
if (stats_id_ == cur.buffer()->id())
return;
return;
// reset counts
*this = Statistics();

View File

@ -55,7 +55,7 @@ private:
void update(Paragraph const & par, pos_type from = 0, pos_type to = -1);
// Indicate whether parts that produce no output should be counted.
bool skip_no_output_;
bool skip_no_output_ = false;
// Used in the code to track status
bool inword_ = false;
// The buffer id at last statistics computation.