- n_logfn was getting used before it was initialized. This was bad because
it determined the index into logfn_list to write to! Now it is zeroed before it can be used.
This commit is contained in:
parent
d0365c816b
commit
db2dd4cbbd
@ -114,12 +114,12 @@ iofunctions::init(void) {
|
||||
// number is set.
|
||||
magic=MAGIC_LOGNUM;
|
||||
showtick = 1;
|
||||
n_logfn = 0;
|
||||
init_log(stderr);
|
||||
log = new logfunc_t(this);
|
||||
LOG_THIS setprefix("[IO ]");
|
||||
LOG_THIS settype(IOLOG);
|
||||
BX_DEBUG(("Init(log file: '%s').\n",logfn));
|
||||
n_logfn = 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user