r20978 by craig -

scribus-commit scribus-commit at lists.scribus.net
Thu Feb 11 21:54:49 UTC 2016


Author: craig
Date: Thu Feb 11 21:54:49 2016
New Revision: 20978

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20978
Log:
coverity #1350582: Add in some variable initialisation, although the function doesnt deal with !isPixmap well

Modified:
    trunk/Scribus/scribus/imagedataloaders/scimgdataloader_pict.cpp

Modified: trunk/Scribus/scribus/imagedataloaders/scimgdataloader_pict.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20978&path=/trunk/Scribus/scribus/imagedataloaders/scimgdataloader_pict.cpp
==============================================================================
--- trunk/Scribus/scribus/imagedataloaders/scimgdataloader_pict.cpp	(original)
+++ trunk/Scribus/scribus/imagedataloaders/scimgdataloader_pict.cpp	Thu Feb 11 21:54:49 2016
@@ -1275,6 +1275,8 @@
 {
 	quint16 bytesPerLine, packType, pixel_type, bits_per_pixel, component_count, component_size;
 	quint32 packSize, horizontal_resolution, vertical_resolution, color_table, plane_bytes;
+	bytesPerLine = packType = pixel_type = bits_per_pixel = component_count = component_size = 0;
+	packSize = horizontal_resolution = vertical_resolution = color_table = plane_bytes = 0;
 	if ((opCode == 0x009A) || (opCode == 0x009B))
 		ts.skipRawData(4);
 	ts >> bytesPerLine;




More information about the scribus-commit mailing list