Always init the console before trying to cnadd it to

avoid the case where the console name isn't set and
cnadd wants to use printf to complain about it.
This commit is contained in:
jb 2006-11-03 06:23:53 +00:00
parent 905cb41ba3
commit 9658161dc0

View File

@ -162,15 +162,15 @@ cninit(void)
/*
* Initialize console, and attach to it.
*/
cnadd(cn);
cn->cn_init(cn);
cnadd(cn);
}
}
if (best_cn == NULL)
return;
if ((boothowto & RB_MULTIPLE) == 0) {
cnadd(best_cn);
best_cn->cn_init(best_cn);
cnadd(best_cn);
}
if (boothowto & RB_PAUSE)
console_pausing = 1;