mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix uninitialized class member Coverity findings
This commit is contained in:
parent
923ffbf25a
commit
4c58fb26c4
8 changed files with 22 additions and 21 deletions
|
@ -207,17 +207,17 @@ public:
|
|||
bool Save();
|
||||
|
||||
struct CachedStats {
|
||||
unsigned long hosts;
|
||||
unsigned long addresses;
|
||||
unsigned long texts;
|
||||
unsigned long total;
|
||||
unsigned long hosts = 0;
|
||||
unsigned long addresses = 0;
|
||||
unsigned long texts = 0;
|
||||
unsigned long total = 0;
|
||||
};
|
||||
|
||||
struct Stats {
|
||||
unsigned long requests; // These count only async requests.
|
||||
unsigned long successful;
|
||||
unsigned long failed;
|
||||
unsigned long pending;
|
||||
unsigned long requests = 0; // These count only async requests.
|
||||
unsigned long successful = 0;
|
||||
unsigned long failed = 0;
|
||||
unsigned long pending = 0;
|
||||
CachedStats cached;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue