Author: gschneider
Date: Wed Oct 1 15:08:50 2008
New Revision: 36618
URL:
http://svn.reactos.org/svn/reactos?rev=36618&view=rev
Log:
Initialize iCodePage to 0, because if might be used uninitialized.
Modified:
trunk/reactos/base/applications/notepad/text.c
Modified: trunk/reactos/base/applications/notepad/text.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/notepad/…
==============================================================================
--- trunk/reactos/base/applications/notepad/text.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/notepad/text.c [iso-8859-1] Wed Oct 1 15:08:50 2008
@@ -58,7 +58,7 @@
BOOL bSuccess = FALSE;
BYTE b = 0;
int iEncoding = ENCODING_ANSI;
- int iCodePage;
+ int iCodePage = 0;
WCHAR szCrlf[2] = { '\r', '\n' };
DWORD adwEolnCount[3] = { 0, 0, 0 };
@@ -223,7 +223,7 @@
DWORD dwPos = 0;
DWORD dwByteCount;
BYTE buffer[1024];
- UINT iCodePage;
+ UINT iCodePage = 0;
DWORD dwDummy, i;
BOOL bSuccess = FALSE;
int iBufferSize, iRequiredBytes;