r20747 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Fri Jan 29 20:45:17 UTC 2016
Author: jghali
Date: Fri Jan 29 20:45:16 2016
New Revision: 20747
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20747
Log:
fix uninitialized scalar variables <coverity>
Modified:
trunk/Scribus/scribus/sccolor.cpp
Modified: trunk/Scribus/scribus/sccolor.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20747&path=/trunk/Scribus/scribus/sccolor.cpp
==============================================================================
--- trunk/Scribus/scribus/sccolor.cpp (original)
+++ trunk/Scribus/scribus/sccolor.cpp Fri Jan 29 20:45:16 2016
@@ -39,12 +39,14 @@
m_MG = 100;
m_YB = 50;
m_K = 0;
+ m_L_val = m_a_val = m_b_val = 0;
m_Spot = false;
m_Regist = false;
}
ScColor::ScColor(int c, int m, int y, int k)
{
+ m_L_val = m_a_val = m_b_val = 0;
m_Spot = false;
m_Regist = false;
setColor(c, m, y, k);
@@ -52,6 +54,8 @@
ScColor::ScColor(int r, int g, int b)
{
+ m_K = 0;
+ m_L_val = m_a_val = m_b_val = 0;
m_Spot = false;
m_Regist = false;
setColorRGB(r, g, b);
More information about the scribus-commit
mailing list