[Kst] extragear/graphics/kst/src/libkst

George Staikos staikos at kde.org
Thu Oct 12 17:29:20 CEST 2006


SVN commit 594853 by staikos:

uninitialized variable


 M  +3 -1      kstscalar.cpp  


--- trunk/extragear/graphics/kst/src/libkst/kstscalar.cpp #594852:594853
@@ -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