[SCM] OCE packaging branch, debian, updated. debian/0.11-1

tpaviot tpaviot at gmail.com
Thu Dec 13 19:16:41 UTC 2012


The following commit has been merged in the debian branch:
commit 0bb4143a0680089813d8adbd1cfe3a6468602600
Author: tpaviot <tpaviot at gmail.com>
Date:   Tue Nov 20 09:25:28 2012 +0100

    [cppcheck-fix][uninitialized-var]
    
    Fix folloxing cppcheck-1.57 issues :
    [src/DebugTools/Perf.cxx:191]: (error) Uninitialized variable: utime
    [src/DebugTools/Perf.cxx:214]: (error) Uninitialized variable: utime

diff --git a/src/DebugTools/Perf.cxx b/src/DebugTools/Perf.cxx
index f20e90c..1384eee 100644
--- a/src/DebugTools/Perf.cxx
+++ b/src/DebugTools/Perf.cxx
@@ -187,7 +187,7 @@ int perf_stop_meter (const char * const MeterName)
   t_TimeCounter* ptc = find_meter (MeterName);
 
   if (ptc && ptc->start_time) {
-    PERF_TIME utime;
+    PERF_TIME utime = 0;
     PICK_TIME (utime)
     ptc->cumul_time += utime - ptc->start_time;
     ptc->start_time = 0;
@@ -210,7 +210,7 @@ int perf_stop_imeter (const int iMeter)
     t_TimeCounter * const ptc = &MeterTable[iMeter-1];
 
     if (ptc->start_time) {
-      PERF_TIME utime;
+      PERF_TIME utime = 0;
       PICK_TIME (utime)
       ptc->cumul_time += utime - ptc->start_time;
       ptc->start_time = 0;

-- 
OCE packaging



More information about the debian-science-commits mailing list