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

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


The following commit has been merged in the debian branch:
commit 7cfb0ee3720ba3537c09748e4a2498eed9ff322f
Author: tpaviot <tpaviot at gmail.com>
Date:   Tue Nov 20 08:57:40 2012 +0100

    [cppcheck-fix] Uninitialized variable
    
    Fix issue reported by cppcheck-1.57 :
    [src/Xw/Xw_ColorMap.cxx:320]: (error) Uninitialized variable: MaxUserColor

diff --git a/src/Xw/Xw_ColorMap.cxx b/src/Xw/Xw_ColorMap.cxx
index 0dd7dbe..1f6db7e 100644
--- a/src/Xw/Xw_ColorMap.cxx
+++ b/src/Xw/Xw_ColorMap.cxx
@@ -307,7 +307,7 @@ int MaxColor,BasePixel,MaxUserColor,MaxDefineColor,FirstFreeColorIndex,visualid
 Standard_Integer Xw_ColorMap::MaxOverlayColors( ) const {
 Aspect_Handle *VisualInfo ;
 Xw_TypeOfVisual VisualClass ;
-int MaxColor,BasePixel,MaxUserColor,MaxDefineColor,FirstFreeColorIndex,visualid ;
+int MaxColor,BasePixel,MaxUserColor = 0,MaxDefineColor,FirstFreeColorIndex,visualid ;
 
 	status = XW_ERROR;
 	if( MyExtendedOverlayColorMap ) {

-- 
OCE packaging



More information about the debian-science-commits mailing list