From 1b3b403e9bbbb3bcb0acff2d4a30ef3eca19dfeb Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Fri, 29 Jul 2005 12:47:42 +0000 Subject: [PATCH] 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(-) diff --git a/sys/boot/common/console.c b/sys/boot/common/console.c index 196e715384a..d140a96b570 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); }