Fix a comparison that broke ``set console=vidconsole'' and even the

loader.conf line ``console="vidconsole"''.

Sponsored by:	ActiveState/Sophos
MFC after:	1 week
This commit is contained in:
Brian Somers 2005-07-29 12:47:42 +00:00
parent 07998bfffc
commit 1b3b403e9b

View file

@ -217,7 +217,7 @@ cons_change(const char *string)
if (*curpos == '\0')
continue;
cons = cons_find(curpos);
if (cons > 0) {
if (cons >= 0) {
consoles[cons]->c_flags |= C_ACTIVEIN | C_ACTIVEOUT;
consoles[cons]->c_init(0);
}