From b64d5dc6a4fd48a7fa5bd475211a4af55f4cba3a Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 26 Nov 2013 10:03:01 +0200 Subject: [PATCH] WaE: potentially uninitialized local variable 'pPattern' used Change-Id: Ic000edc60a9c5ae7d64fab9bf8b6c2a88bcec223 --- cppcanvas/source/mtfrenderer/emfplus.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx index f4730e6d7c9c..f3f6b50a158d 100644 --- a/cppcanvas/source/mtfrenderer/emfplus.cxx +++ b/cppcanvas/source/mtfrenderer/emfplus.cxx @@ -793,7 +793,7 @@ namespace cppcanvas const float dashdotdot[] = {3, 3, 1, 3, 1, 3}; sal_Int32 nLen = 0; - const float *pPattern; + const float *pPattern = NULL; switch (dashStyle) { case EmfPlusLineStyleDash: nLen = SAL_N_ELEMENTS(dash); pPattern = dash; break;