[Libreoffice-commits] .: Branch 'libreoffice-3-5' - sc/source
Christian Lohmaier
cloph at kemper.freedesktop.org
Sat Dec 17 12:59:01 PST 2011
sc/source/ui/unoobj/filtuno.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 47a941847617fd232dc48947b82f2b6a9830a895
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date: Fri Dec 16 12:39:39 2011 -0600
WaE Mac unitialized value false positive
diff --git a/sc/source/ui/unoobj/filtuno.cxx b/sc/source/ui/unoobj/filtuno.cxx
index 6c1a651..4fe9f0f 100644
--- a/sc/source/ui/unoobj/filtuno.cxx
+++ b/sc/source/ui/unoobj/filtuno.cxx
@@ -82,7 +82,7 @@ SC_SIMPLE_SERVICE_INFO( ScFilterOptionsObj, SCFILTEROPTIONSOBJ_IMPLNAME, SCFILTE
static void load_CharSet( rtl_TextEncoding &nCharSet, bool bExport )
{
- sal_Int32 nChar;
+ sal_Int32 nChar = 0;
Sequence<Any> aValues;
const Any *pProperties;
Sequence<OUString> aNames(1);
@@ -101,7 +101,9 @@ static void load_CharSet( rtl_TextEncoding &nCharSet, bool bExport )
{
pProperties[0] >>= nChar;
if( nChar >= 0)
+ {
nCharSet = (rtl_TextEncoding) nChar;
+ }
}
}
More information about the Libreoffice-commits
mailing list