summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2011-03-30 19:45:16 +0200
committerPetr Mladek <pmladek@suse.cz>2011-03-30 19:45:16 +0200
commitc93174a788a318ada5097d9e1cd2853f5b7eec07 (patch)
treee942754991adb25ba420524603110c2872a93db2 /tools
parent5126356465a895343b9c0ab12d600d8a27e1518b (diff)
warning-uninitialized-variables-tools-2.diff: avoid warning (i#58984)
avoid warnings about that a variable is used unitialized; the code was correct; though, the warning was considered as an error in openSUSE build service; the change does not cause any harm
Diffstat (limited to 'tools')
-rw-r--r--tools/source/inet/inetmime.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx
index 472f5c4b8284..51208dd8ecd6 100644
--- a/tools/source/inet/inetmime.cxx
+++ b/tools/source/inet/inetmime.cxx
@@ -3064,7 +3064,7 @@ ByteString INetMIME::decodeUTF8(const ByteString & rText,
ByteString sDecoded;
while (p != pEnd)
{
- sal_uInt32 nCharacter;
+ sal_uInt32 nCharacter = 0;
if (translateUTF8Char(p, pEnd, eEncoding, nCharacter))
sDecoded += sal_Char(nCharacter);
else
@@ -3497,7 +3497,7 @@ UniString INetMIME::decodeHeaderFieldBody(HeaderFieldType eType,
{
const sal_Char * pUTF8Begin = p - 1;
const sal_Char * pUTF8End = pUTF8Begin;
- sal_uInt32 nCharacter;
+ sal_uInt32 nCharacter = 0;
if (translateUTF8Char(pUTF8End, pEnd, RTL_TEXTENCODING_UCS4,
nCharacter))
{