r21955 by craig - Coverity 1350592: Fix uninitialised variables

scribus-commit scribus-commit at lists.scribus.net
Fri Apr 21 16:22:07 UTC 2017


Author: craig
Date: Fri Apr 21 16:22:07 2017
New Revision: 21955

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21955
Log:
Coverity 1350592: Fix uninitialised variables

Modified:
    trunk/Scribus/scribus/plugins/import/pct/importpct.cpp

Modified: trunk/Scribus/scribus/plugins/import/pct/importpct.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21955&path=/trunk/Scribus/scribus/plugins/import/pct/importpct.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pct/importpct.cpp	(original)
+++ trunk/Scribus/scribus/plugins/import/pct/importpct.cpp	Fri Apr 21 16:22:07 2017
@@ -1667,8 +1667,8 @@
 void PctPlug::handlePixmap(QDataStream &ts, quint16 opCode)
 {
 	handleLineModeEnd();
-	quint16 bytesPerLine, packType, pixel_type, bits_per_pixel, component_count, component_size;
-	quint32 packSize, horizontal_resolution, vertical_resolution, color_table, plane_bytes;
+	quint16 bytesPerLine = 0, packType = 0, pixel_type = 0, bits_per_pixel = 0, component_count = 0, component_size = 0;
+	quint32 packSize = 0, horizontal_resolution = 0, vertical_resolution = 0, color_table = 0, plane_bytes = 0;
 	if ((opCode == 0x009A) || (opCode == 0x009B))
 		ts.skipRawData(4);
 	ts >> bytesPerLine;




More information about the scribus-commit mailing list