From 2dd1722d2729f0d6cda6e31297f3e03ae36c555f Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Thu, 16 Feb 2012 22:36:35 +0100 Subject: Fix a bug found with cclang Null pointer passed as an argument to a 'nonnull' --- tools/source/generic/poly.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx index 3c86a7a45572..4e71b3543cd1 100644 --- a/tools/source/generic/poly.cxx +++ b/tools/source/generic/poly.cxx @@ -88,7 +88,7 @@ ImplPolygon::ImplPolygon( sal_uInt16 nInitSize, sal_Bool bFlags ) if( bFlags ) { mpFlagAry = new sal_uInt8[ nInitSize ]; - memset( mpPointAry, 0, nInitSize ); + memset( mpFlagAry, 0, nInitSize ); } else mpFlagAry = NULL; -- cgit