diff options
author | brian <brian@FreeBSD.org> | 2005-07-29 12:47:42 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2005-07-29 12:47:42 +0000 |
commit | bea55b64d3f045f1f8013655fd5e3b78e98673a0 (patch) | |
tree | 4f1b1e40e1e06aa68593564aeb50fc6d2e2f01dc /sys | |
parent | 892a2d7dd5596a9b27b4e59dfa561eec5b4ce15d (diff) | |
download | FreeBSD-src-bea55b64d3f045f1f8013655fd5e3b78e98673a0.zip FreeBSD-src-bea55b64d3f045f1f8013655fd5e3b78e98673a0.tar.gz |
Fix a comparison that broke ``set console=vidconsole'' and even the
loader.conf line ``console="vidconsole"''.
Sponsored by: ActiveState/Sophos
MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r-- | sys/boot/common/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |