diff options
author | sra@chromium.org <sra@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-22 01:30:06 +0000 |
---|---|---|
committer | sra@chromium.org <sra@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-22 01:30:06 +0000 |
commit | d38c3a28213b3a2bc62df703c231eebf0bb5dbf4 (patch) | |
tree | f621cc23ae43d38cce013c5a795e35a043c4bc34 /courgette/adjustment_method.cc | |
parent | 31856be711996fc573ca6203db7512ab6089899d (diff) | |
download | chromium_src-d38c3a28213b3a2bc62df703c231eebf0bb5dbf4.zip chromium_src-d38c3a28213b3a2bc62df703c231eebf0bb5dbf4.tar.gz chromium_src-d38c3a28213b3a2bc62df703c231eebf0bb5dbf4.tar.bz2 |
Coverity fixes to keep coverity quiet.
Only the first issue is remotely interesting.
* Possibility (low) of using NULL SinkStream* courgette tool 'gen1a' command.
* Added initializers for all class members to several constructors.
* return 0 at end of from wmain.
BUG=none
TEST=existing
Review URL: http://codereview.chromium.org/155820
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21253 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette/adjustment_method.cc')
-rw-r--r-- | courgette/adjustment_method.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/courgette/adjustment_method.cc b/courgette/adjustment_method.cc index 5a2f109..930dc59 100644 --- a/courgette/adjustment_method.cc +++ b/courgette/adjustment_method.cc @@ -219,7 +219,9 @@ class AssignmentProblem { AssignmentProblem(const Trace& model, const Trace& problem) : m_trace_(model), - p_trace_(problem) { + p_trace_(problem), + m_root_(NULL), + p_root_(NULL) { } ~AssignmentProblem() { @@ -579,7 +581,10 @@ class AssignmentProblem { class GraphAdjuster : public AdjustmentMethod { public: - GraphAdjuster() {} + GraphAdjuster() + : prog_(NULL), + model_(NULL), + debug_label_index_gen_(0) {} ~GraphAdjuster() {} bool Adjust(const AssemblyProgram& model, AssemblyProgram* program) { |