Fix uninitialized (or unused) fields.

This commit is contained in:
Jon Siwek 2013-09-27 10:13:52 -05:00
parent 64f3bef96d
commit 775ec6795e
62 changed files with 135 additions and 98 deletions

View file

@ -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()