[beast: 5/8] SFI: PspecVisitor::visit_vector: fix uninitialized variable access



commit a6de159335bea59ff7ba84d77d74b8e3c6114897
Author: Tim Janik <timj gnu org>
Date:   Sat Sep 19 00:19:02 2015 +0200

    SFI: PspecVisitor::visit_vector: fix uninitialized variable access

 sfi/sfivisitors.hh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/sfi/sfivisitors.hh b/sfi/sfivisitors.hh
index fc4b849..ee91896 100644
--- a/sfi/sfivisitors.hh
+++ b/sfi/sfivisitors.hh
@@ -103,9 +103,9 @@ public:
     GParamSpec *pspec = sfi_pspec_seq_field_from_visitable (a); // this needs the real SeqA type
     if (pspec)
       {
-        GParamSpec *pspec = sfi_pspec_seq (name, get_label (name).c_str(), get_blurb (name).c_str(), pspec, 
get_hints (name).c_str());
-        add_group (name, pspec);
-        pspecs_.push_back (pspec);
+        GParamSpec *seq_pspec = sfi_pspec_seq (name, get_label (name).c_str(), get_blurb (name).c_str(), 
pspec, get_hints (name).c_str());
+        add_group (name, seq_pspec);
+        pspecs_.push_back (seq_pspec);
       }
   }
   template<class A> void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]