[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/koffice/1.4/koffice
From:       Stephan Binner <binner () kde ! org>
Date:       2005-10-10 19:59:34
Message-ID: 1128974374.007452.21290.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 469342 by binner:

don't use uninitialized variables


 M  +1 -1      filters/xsltfilter/export/xsltproc.cc  
 M  +1 -1      filters/xsltfilter/import/xsltproc.cc  
 M  +4 -2      kivio/kiviopart/kivio_view.cpp  


--- branches/koffice/1.4/koffice/filters/xsltfilter/export/xsltproc.cc #469341:469342
@@ -216,7 +216,7 @@
 
 int XSLTProc::parse()
 {
-    int i;
+    int i=0;
     xsltStylesheetPtr cur = NULL;
     xmlDocPtr doc, style;
 
--- branches/koffice/1.4/koffice/filters/xsltfilter/import/xsltproc.cc #469341:469342
@@ -216,7 +216,7 @@
 
 int XSLTProc::parse()
 {
-    int i;
+    int i = 0;
     xsltStylesheetPtr cur = NULL;
     xmlDocPtr doc, style;
 
--- branches/koffice/1.4/koffice/kivio/kiviopart/kivio_view.cpp #469341:469342
@@ -1487,7 +1487,8 @@
     if (!pStencil)
       return;
 
-    float w,h;
+    float w = 0.0;
+    float h = 0.0;
     KMacroCommand *macro = new KMacroCommand( i18n("Change Size of Begin Arrow"));
     bool createMacro = false;
     while( pStencil )
@@ -1516,7 +1517,8 @@
     if (!pStencil)
       return;
 
-    float w,h;
+    float w = 0.0;
+    float h = 0.0;
     KMacroCommand *macro = new KMacroCommand( i18n("Change Size of End Arrow"));
     bool createMacro = false;
     while( pStencil )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic