mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
Fix uninitialized (or unused) fields.
This commit is contained in:
parent
64f3bef96d
commit
775ec6795e
62 changed files with 135 additions and 98 deletions
12
src/Stats.h
12
src/Stats.h
|
@ -29,26 +29,18 @@ public:
|
|||
// The constructor takes some way of identifying the segment.
|
||||
SegmentProfiler(SegmentStatsReporter* arg_reporter,
|
||||
const char* arg_name)
|
||||
: reporter(arg_reporter), name(arg_name), loc(), initial_rusage()
|
||||
{
|
||||
reporter = arg_reporter;
|
||||
if ( reporter )
|
||||
{
|
||||
name = arg_name;
|
||||
loc = 0;
|
||||
Init();
|
||||
}
|
||||
}
|
||||
|
||||
SegmentProfiler(SegmentStatsReporter* arg_reporter,
|
||||
const Location* arg_loc)
|
||||
: reporter(arg_reporter), name(), loc(arg_loc), initial_rusage()
|
||||
{
|
||||
reporter = arg_reporter;
|
||||
if ( reporter )
|
||||
{
|
||||
name = 0;
|
||||
loc = arg_loc;
|
||||
Init();
|
||||
}
|
||||
}
|
||||
|
||||
~SegmentProfiler()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue