]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
correct return value of checkkey for null-terminal
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 9 Dec 2009 19:34:14 +0000 (20:34 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 9 Dec 2009 19:34:14 +0000 (20:34 +0100)
kern/term.c

index 0e3595df34efe6bc7db2dc94e7b2586a6f6cd413..52a265a6dfda7e67a37bd6c10bd33e0b930eb652 100644 (file)
@@ -145,7 +145,7 @@ int
 grub_checkkey (void)
 {
   if (!grub_cur_term_input)
-    return 0;
+    return -1;
   return (grub_cur_term_input->checkkey) ();
 }