[Libreoffice-commits] .: tools/source
Petr Mladek
pmladek at kemper.freedesktop.org
Wed Mar 30 10:47:30 PDT 2011
tools/source/inet/inetmime.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 7920ad49731765dffdfb2cb1334508944f6e8d2e
Author: Petr Mladek <pmladek at suse.cz>
Date: Wed Mar 30 19:45:16 2011 +0200
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
diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx
index f860b79..ca96dd1 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))
{
More information about the Libreoffice-commits
mailing list