r20752 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Fri Jan 29 21:59:13 UTC 2016


Author: jghali
Date: Fri Jan 29 21:59:13 2016
New Revision: 20752

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20752
Log:
fix uninitialized scalar variables <coverity>

Modified:
    trunk/Scribus/scribus/util_color.cpp

Modified: trunk/Scribus/scribus/util_color.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20752&path=/trunk/Scribus/scribus/util_color.cpp
==============================================================================
--- trunk/Scribus/scribus/util_color.cpp	(original)
+++ trunk/Scribus/scribus/util_color.cpp	Fri Jan 29 21:59:13 2016
@@ -869,8 +869,8 @@
 									QDomElement cg = colNode.toElement();
 									if (cg.tagName() == "colorEntry")
 									{
+										int r (0), g(0), b(0);
 										QString colorName = "";
-										int r, g, b;
 										QDomNode colEntry = cg.firstChild();
 										while(!colEntry.isNull())
 										{




More information about the scribus-commit mailing list