From bea55b64d3f045f1f8013655fd5e3b78e98673a0 Mon Sep 17 00:00:00 2001 From: brian Date: Fri, 29 Jul 2005 12:47:42 +0000 Subject: Fix a comparison that broke ``set console=vidconsole'' and even the loader.conf line ``console="vidconsole"''. Sponsored by: ActiveState/Sophos MFC after: 1 week --- sys/boot/common/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/boot/common/console.c b/sys/boot/common/console.c index 196e715..d140a96 100644 --- a/sys/boot/common/console.c +++ b/sys/boot/common/console.c @@ -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); } -- cgit v1.1