Fix uninitialized value in CPDF_ColorStateData
authorBo Xu <bo_xu@foxitsoftware.com>
Tue, 9 Sep 2014 00:35:04 +0000 (17:35 -0700)
committerBo Xu <bo_xu@foxitsoftware.com>
Tue, 9 Sep 2014 00:35:04 +0000 (17:35 -0700)
BUG=411161
R=tsepez@chromium.org

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

core/include/fpdfapi/fpdf_pageobj.h

index 307fb16..1bb0677 100644 (file)
@@ -165,7 +165,7 @@ class CPDF_ColorStateData : public CFX_Object
 {
 public:
 
-    CPDF_ColorStateData() {}
+    CPDF_ColorStateData() : m_FillColor(0), m_StrokeColor(0) {}
 
     CPDF_ColorStateData(const CPDF_ColorStateData& src);