[Kst] branches/kst/1.3/kst/src/libkst

George Staikos staikos at kde.org
Thu Oct 12 17:39:35 CEST 2006


SVN commit 594857 by staikos:

backport uninit variable fix


 M  +3 -1      kstscalar.cpp  


--- branches/kst/1.3/kst/src/libkst/kstscalar.cpp #594856:594857
@@ -70,7 +70,9 @@
   QDomNode n = e.firstChild();
   bool ok;
 
-  while(!n.isNull()) {
+  _value = 0.0;  // must init this first
+
+  while (!n.isNull()) {
     QDomElement e = n.toElement();
     if(!e.isNull()) {
       if (e.tagName() == "tag") {


More information about the Kst mailing list