summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/unoobj/filtuno.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/filtuno.cxx b/sc/source/ui/unoobj/filtuno.cxx
index 6c1a65172668..4fe9f0fd7cc5 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;
+ }
}
}