Fix uninitialized value in CPDF_ColorStateData
authorBo Xu <bo_xu@foxitsoftware.com>
Wed, 10 Sep 2014 01:32:05 +0000 (18:32 -0700)
committerBo Xu <bo_xu@foxitsoftware.com>
Wed, 10 Sep 2014 01:32:05 +0000 (18:32 -0700)
BUG=411161
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/560673002

core/include/fpdfapi/fpdf_pageobj.h

index 307fb16..f211254 100644 (file)
@@ -165,7 +165,7 @@ class CPDF_ColorStateData : public CFX_Object
 {
 public:
 
-    CPDF_ColorStateData() {}
+    CPDF_ColorStateData(): m_FillRGB(0), m_StrokeRGB(0) {}
 
     CPDF_ColorStateData(const CPDF_ColorStateData& src);