Properly initialize the ErrorAlreadyPrinted array.

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@458 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2002-11-09 19:10:11 +00:00
parent 04e8d7a5c6
commit 807602f895
1 changed files with 7 additions and 2 deletions

View File

@ -89,6 +89,9 @@ extern UWORD DOSFAR ASM uppermem_root, DOSFAR ASM LoL_nbuffers;
UWORD umb_start = 0, UMB_top = 0; UWORD umb_start = 0, UMB_top = 0;
UWORD ram_top = 0; /* How much ram in Kbytes */ UWORD ram_top = 0; /* How much ram in Kbytes */
static UBYTE ErrorAlreadyPrinted[128];
struct config Config = { struct config Config = {
NUMBUFF, NUMBUFF,
NFILES, NFILES,
@ -260,6 +263,9 @@ void PreConfig(void)
VgaSet = 0; VgaSet = 0;
UmbState = 0; UmbState = 0;
memset(ErrorAlreadyPrinted,0,sizeof(ErrorAlreadyPrinted));
/* Initialize the base memory pointers */ /* Initialize the base memory pointers */
#ifdef DEBUG #ifdef DEBUG
@ -1204,7 +1210,6 @@ STATIC BOOL LoadDevice(BYTE * pLine, char FAR *top, COUNT mode)
STATIC VOID CfgFailure(BYTE * pLine) STATIC VOID CfgFailure(BYTE * pLine)
{ {
BYTE *pTmp = pLineStart; BYTE *pTmp = pLineStart;
static UBYTE ErrorAlreadyPrinted[128];
/* suppress multiple printing of same unrecognized lines */ /* suppress multiple printing of same unrecognized lines */