merge the formfield patch from ooo-build
[ooovba.git] / applied_patches / 0266-warning-uninitialized-variables-tools-2.diff
blob437fbde1ab2ad6d0b1a2388416aafaa50e635bfe
1 --- tools/source/inet/inetmime.cxx.old 2005-09-09 16:23:08.000000000 +0200
2 +++ tools/source/inet/inetmime.cxx 2005-11-28 20:06:21.000000000 +0100
3 @@ -3051,7 +3051,9 @@
4 ByteString sDecoded;
5 while (p != pEnd)
7 - sal_uInt32 nCharacter;
8 + // the value is initialized just to avoid warning: ‘nCharacter’ is used uninitialized in this function
9 + // there seems to be a bug in gcc-4.1 because this value is used only if it is initialized
10 + sal_uInt32 nCharacter=0;
11 if (translateUTF8Char(p, pEnd, eEncoding, nCharacter))
12 sDecoded += sal_Char(nCharacter);
13 else
14 @@ -3478,7 +3480,9 @@
16 const sal_Char * pUTF8Begin = p - 1;
17 const sal_Char * pUTF8End = pUTF8Begin;
18 - sal_uInt32 nCharacter;
19 + // the value is initialized just to avoid warning: ‘nCharacter’ is used uninitialized in this function
20 + // there seems to be a bug in gcc-4.1 because this value is used only if it is initialized
21 + sal_uInt32 nCharacter=0;
22 if (translateUTF8Char(pUTF8End, pEnd, RTL_TEXTENCODING_UCS4,
23 nCharacter))