summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-02-16 22:36:35 +0100
committerJulien Nabet <serval2412@yahoo.fr>2012-02-16 22:36:35 +0100
commit2dd1722d2729f0d6cda6e31297f3e03ae36c555f (patch)
tree9d51be837b8a7e6c6143f4ed0b118160a02d921d /tools
parent81921bec4b81b7e3e87c24a6b4e3cfdd0cced47d (diff)
Fix a bug found with cclang
Null pointer passed as an argument to a 'nonnull'
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/poly.cxx2
1 files changed, 1 insertions, 1 deletions
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;