* grub-core/term/terminfo.c (grub_terminfo_output_unregister):

Mark calling with invalid term as GRUB_ERR_BUG.
This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2012-02-12 19:16:49 +01:00
1 parent 0cf69874ee
commit dded554099
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -205,7 +205,7 @@ grub_terminfo_output_unregister (struct grub_term_output *term)
*ptr = ((struct grub_terminfo_output_state *) (*ptr)->data)->next;
return GRUB_ERR_NONE;
}
return grub_error (GRUB_ERR_BAD_ARGUMENT, "terminal not found");
return grub_error (GRUB_ERR_BUG, "terminal not found");
}
/* Wrapper for grub_putchar to write strings. */