r19923 by craig - Fix uninitialised variable warning

scribus-commit scribus-commit at lists.scribus.net
Sun Mar 15 12:54:24 UTC 2015


Author: craig
Date: Sun Mar 15 12:54:24 2015
New Revision: 19923

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19923
Log:
Fix uninitialised variable warning

Modified:
    trunk/Scribus/scribus/plugins/import/emf/importemf.cpp

Modified: trunk/Scribus/scribus/plugins/import/emf/importemf.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19923&path=/trunk/Scribus/scribus/plugins/import/emf/importemf.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/emf/importemf.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/emf/importemf.cpp Sun Mar 15 12:54:24 2015
@@ -2885,9 +2885,9 @@
 QImage EmfPlug::handleDIB(QDataStream &ds, qint64 filePos, quint32 offBitH, quint32 sizeBitH, quint32 offBits, quint32 sizeBits)
 {
 	QImage img = QImage();
-	quint32 hSiz, hCompression, imgSize, xres, yres, colorsUsed, colorsReq;
-	qint32 hWidth, hHeight;
-	quint16 hPlane, hBitCount;
+	quint32 hSiz = 0, hCompression = 0, imgSize = 0, xres = 0, yres = 0, colorsUsed = 0, colorsReq = 0;
+	qint32 hWidth = 0, hHeight = 0;
+	quint16 hPlane = 0, hBitCount = 0;
 	QVector<QRgb> colorTbl;
 	if ((sizeBitH != 0) && (sizeBits != 0))
 	{




More information about the scribus-commit mailing list