- 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:
Bryce Denney 2001-05-24 07:59:08 +00:00
parent d0365c816b
commit db2dd4cbbd

View File

@ -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