Skip to content

Commit

Permalink
statshttpd: fix uninitialized variable modifyHoursFlag_
Browse files Browse the repository at this point in the history
  • Loading branch information
SwimmingTiger committed Jun 9, 2020
1 parent 75e5730 commit 7936ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Statistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class ShareStatsDay {
double earn1d_ = 0;

// mark which hour data has been modified: 23, 22, ...., 0
uint32_t modifyHoursFlag_;
uint32_t modifyHoursFlag_ = 0;
mutex lock_;
string rpcUrl_;

Expand Down

0 comments on commit 7936ce3

Please sign in to comment.