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

List:       kde-commits
Subject:    [calligra] sheets/functions: clear coverity warning
From:       Tomas Mecir <mecirt () gmail ! com>
Date:       2016-04-09 19:43:32
Message-ID: E1aoyn6-0005X7-3O () scm ! kde ! org
[Download RAW message or body]

Git commit 69a2a1ca04588841ba948bbebdf01e463ceee28f by Tomas Mecir.
Committed on 09/04/2016 at 13:00.
Pushed by mecir into branch 'master'.

clear coverity warning

M  +1    -1    sheets/functions/statistical.cpp

http://commits.kde.org/calligra/69a2a1ca04588841ba948bbebdf01e463ceee28f

diff --git a/sheets/functions/statistical.cpp b/sheets/functions/statistical.cpp
index b972014..3927794 100644
--- a/sheets/functions/statistical.cpp
+++ b/sheets/functions/statistical.cpp
@@ -2747,7 +2747,7 @@ Value func_trend(valVector args, ValueCalc *calc, FuncExtra *)
         withOffset = calc->conv()->asInteger(args[3]).asInteger();
 
     List knownY, knownX, newX;
-    int  knownXcount, newXcount;
+    int  knownXcount = 0, newXcount = 0;
 
     //
     // knownX

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

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