summaryrefslogtreecommitdiff
path: root/cppcanvas/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-28 09:16:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-28 10:31:02 +0100
commit76f74ef908a50ac3b63d0b3a190f17dce33cbd0f (patch)
tree5141f7b3b8baa591491537de441d9e3b6305d3e8 /cppcanvas/source
parentb3e332b4a70658548c4560c2bc460143548559df (diff)
coverity#738575 Uninitialized pointer field
Change-Id: Ib65f0e95ef2a837b6c5791d9e2dce5fe8025da33
Diffstat (limited to 'cppcanvas/source')
-rw-r--r--cppcanvas/source/mtfrenderer/emfplus.cxx23
1 files changed, 17 insertions, 6 deletions
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 ()