r21954 by craig - Coverity 1350813: Fix uninitialised variables

scribus-commit scribus-commit at lists.scribus.net
Fri Apr 21 16:18:51 UTC 2017


Author: craig
Date: Fri Apr 21 16:18:51 2017
New Revision: 21954

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

Modified:
    trunk/Scribus/scribus/plugins/import/pages/importpages.cpp

Modified: trunk/Scribus/scribus/plugins/import/pages/importpages.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21954&path=/trunk/Scribus/scribus/plugins/import/pages/importpages.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pages/importpages.cpp	(original)
+++ trunk/Scribus/scribus/plugins/import/pages/importpages.cpp	Fri Apr 21 16:18:51 2017
@@ -62,7 +62,21 @@
 
 extern SCRIBUS_API ScribusQApp * ScQApp;
 
-PagesPlug::PagesPlug(ScribusDoc* doc, int flags)
+PagesPlug::PagesPlug(ScribusDoc* doc, int flags) :
+	baseX(0.0),
+	baseY(0.0),
+	docWidth(0.0),
+	docHeight(0.0),
+	cancel(false),
+	firstPage(false),
+	pagecount(0),
+	mpagecount(0),
+	topMargin(0.0),
+	leftMargin(0.0),
+	rightMargin(0.0),
+	bottomMargin(0.0),
+	pgCols(0.0),
+	pgGap(0.0)
 {
 	tmpSel=new Selection(this, false);
 	m_Doc=doc;




More information about the scribus-commit mailing list