From 77f79f29f03541fef0b6ab0373371ecbf504d8f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 23 May 2014 10:39:58 +0100 Subject: [PATCH] coverity#984086 Uninitialized scalar field Change-Id: Iba162efd0b582541199f343b64ac3b8c59dcc3d8 --- editeng/source/items/bulitem.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editeng/source/items/bulitem.cxx b/editeng/source/items/bulitem.cxx index 4492db17c62e..2faf3087f983 100644 --- a/editeng/source/items/bulitem.cxx +++ b/editeng/source/items/bulitem.cxx @@ -114,6 +114,8 @@ SvxBulletItem::SvxBulletItem( SvStream& rStrm, sal_uInt16 _nWhich ) , pGraphicObject(NULL) , nStart(0) , nStyle(0) + , nScale(0) + , nJustify(0) { rStrm.ReadUInt16( nStyle ); @@ -149,7 +151,7 @@ SvxBulletItem::SvxBulletItem( SvStream& rStrm, sal_uInt16 _nWhich ) rStrm.ReadUInt16( nStart ); rStrm.ReadUChar( nJustify ); - char cTmpSymbol; + char cTmpSymbol(0); rStrm.ReadChar( cTmpSymbol ); //convert single byte to unicode cSymbol = OUString(&cTmpSymbol, 1, aFont.GetCharSet()).toChar();