[SCM] OCE packaging branch, debian, updated. debian/0.11-1
tpaviot
tpaviot at gmail.com
Thu Dec 13 19:16:42 UTC 2012
The following commit has been merged in the debian branch:
commit 78ee5d853432784d4f5f7cef16b215a43ff28489
Author: tpaviot <tpaviot at gmail.com>
Date: Tue Nov 20 09:42:50 2012 +0100
[cppcheck-fix][uninitialized-var]
Fix cppcheck-1.57 issue :
[src/AlienImage/AlienImage_BMPAlienData.cxx:105]: (error) Uninitialized variable: bmpSign
diff --git a/src/AlienImage/AlienImage_BMPAlienData.cxx b/src/AlienImage/AlienImage_BMPAlienData.cxx
index 94cabdd..2f6e3b8 100644
--- a/src/AlienImage/AlienImage_BMPAlienData.cxx
+++ b/src/AlienImage/AlienImage_BMPAlienData.cxx
@@ -89,7 +89,7 @@ Standard_Boolean AlienImage_BMPAlienData::Read (OSD_File& file)
int isInsideOut, hasMask, nBitCount;
int iCompression, isOS2Format, hasColormap;
int nBytes, iDataSize;
- char bmpSign[2];
+ char bmpSign[2] = {'\0' , '\0'};
AlienImage_BMPHeader bmfh; // Standard BMP file header
BITMAPINFOHEADER bmih = {}; // Windows BMP header
BITMAPCOREHEADER bmch = {}; // OS/2 BMP header
--
OCE packaging
More information about the debian-science-commits
mailing list