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:
parent
905cb41ba3
commit
9658161dc0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user