summaryrefslogtreecommitdiffstats
path: root/elaborate.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-02-18 23:08:52 -0500
committerFrank Ch. Eigler <fche@elastic.org>2009-02-18 23:08:52 -0500
commitd784c94d2b2d4664dad6a1f881c85169ab457288 (patch)
tree77bad8167d19855348b8111ed7b29df007062418 /elaborate.cxx
parent1a0264b672725e7f770c27bb60636eb4588315b6 (diff)
downloadsystemtap-steved-d784c94d2b2d4664dad6a1f881c85169ab457288.tar.gz
systemtap-steved-d784c94d2b2d4664dad6a1f881c85169ab457288.tar.xz
systemtap-steved-d784c94d2b2d4664dad6a1f881c85169ab457288.zip
PR9719: uninitialized variable fix
Diffstat (limited to 'elaborate.cxx')
-rw-r--r--elaborate.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/elaborate.cxx b/elaborate.cxx
index 25c52c33..0a00ebf2 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -3987,7 +3987,7 @@ typeresolution_info::invalid (const token* tok, exp_type pe)
void
typeresolution_info::mismatch (const token* tok, exp_type t1, exp_type t2)
{
- bool tok_resolved;
+ bool tok_resolved = false;
size_t i;
semantic_error* err1 = 0;
num_still_unresolved ++;
@@ -4018,7 +4018,7 @@ typeresolution_info::mismatch (const token* tok, exp_type t1, exp_type t2)
}
else
{
- bool tok_printed;
+ bool tok_printed = false;
for (size_t j=0; j<printed_toks.size(); j++)
{
if (printed_toks[j] == resolved_toks[i])