]> sourceware.org Git - systemtap.git/commitdiff
PR9719: uninitialized variable fix
authorFrank Ch. Eigler <fche@elastic.org>
Thu, 19 Feb 2009 04:08:52 +0000 (23:08 -0500)
committerFrank Ch. Eigler <fche@elastic.org>
Thu, 19 Feb 2009 04:08:52 +0000 (23:08 -0500)
ChangeLog
elaborate.cxx

index 435421c11fde8d595aeeda37098bf2114e544cb6..431fabed34b45f1bb84d22401195aca0ab8a0a58 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-18  Frank Ch. Eigler  <fche@elastic.org>
+
+       PR9719.
+       * elaborate.cxx (typeresolution_info::mismatch): Initialize
+       some locals so optimized code works too.
+
 2009-02-18  Rajan Arora  <rarora@redhat.com>
 
        * testuite/semko/typemismatch.stp: New test.
index 25c52c334f525870c933f1cbee6521c5422ed06a..0a00ebf239a715ef5e52482ff015b5b9d77bf7ad 100644 (file)
@@ -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])
This page took 0.044632 seconds and 5 git commands to generate.