From 76f74ef908a50ac3b63d0b3a190f17dce33cbd0f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 28 Apr 2014 09:16:18 +0100 Subject: coverity#738575 Uninitialized pointer field Change-Id: Ib65f0e95ef2a837b6c5791d9e2dce5fe8025da33 --- cppcanvas/source/mtfrenderer/emfplus.cxx | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'cppcanvas') diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx index 5774eb6b42d1..4ff1ea2046f9 100644 --- a/cppcanvas/source/mtfrenderer/emfplus.cxx +++ b/cppcanvas/source/mtfrenderer/emfplus.cxx @@ -360,13 +360,24 @@ namespace cppcanvas public: EMFPBrush () + : type(0) + , additionalFlags(0) + , wrapMode(0) + , areaX(0.0) + , areaY(0.0) + , areaWidth(0.0) + , areaHeight(0.0) + , hasTransformation(false) + , blendPoints(0) + , blendPositions(NULL) + , blendFactors(NULL) + , colorblendPoints(0) + , colorblendPositions(NULL) + , colorblendColors(NULL) + , surroundColorsNumber(0) + , surroundColors(NULL) + , path(NULL) { - blendPositions = NULL; - colorblendPositions = NULL; - colorblendColors = NULL; - surroundColors = NULL; - path = NULL; - hasTransformation = false; } virtual ~EMFPBrush () -- cgit