mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-06 13:34:32 +02:00
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:
parent
04e8d7a5c6
commit
807602f895
@ -89,6 +89,9 @@ extern UWORD DOSFAR ASM uppermem_root, DOSFAR ASM LoL_nbuffers;
|
||||
UWORD umb_start = 0, UMB_top = 0;
|
||||
UWORD ram_top = 0; /* How much ram in Kbytes */
|
||||
|
||||
static UBYTE ErrorAlreadyPrinted[128];
|
||||
|
||||
|
||||
struct config Config = {
|
||||
NUMBUFF,
|
||||
NFILES,
|
||||
@ -260,6 +263,9 @@ void PreConfig(void)
|
||||
VgaSet = 0;
|
||||
UmbState = 0;
|
||||
|
||||
memset(ErrorAlreadyPrinted,0,sizeof(ErrorAlreadyPrinted));
|
||||
|
||||
|
||||
/* Initialize the base memory pointers */
|
||||
|
||||
#ifdef DEBUG
|
||||
@ -1204,7 +1210,6 @@ STATIC BOOL LoadDevice(BYTE * pLine, char FAR *top, COUNT mode)
|
||||
STATIC VOID CfgFailure(BYTE * pLine)
|
||||
{
|
||||
BYTE *pTmp = pLineStart;
|
||||
static UBYTE ErrorAlreadyPrinted[128];
|
||||
|
||||
/* suppress multiple printing of same unrecognized lines */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user