* grub-core/term/terminfo.c (grub_terminfo_output_unregister):
Mark calling with invalid term as GRUB_ERR_BUG.
This commit is contained in:
parent
0cf69874ee
commit
dded554099
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/term/terminfo.c (grub_terminfo_output_unregister):
|
||||||
|
Mark calling with invalid term as GRUB_ERR_BUG.
|
||||||
|
|
||||||
2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/net/tftp.c (tftp_receive): Silently discard too short
|
* grub-core/net/tftp.c (tftp_receive): Silently discard too short
|
||||||
|
|
|
@ -205,7 +205,7 @@ grub_terminfo_output_unregister (struct grub_term_output *term)
|
||||||
*ptr = ((struct grub_terminfo_output_state *) (*ptr)->data)->next;
|
*ptr = ((struct grub_terminfo_output_state *) (*ptr)->data)->next;
|
||||||
return GRUB_ERR_NONE;
|
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. */
|
/* Wrapper for grub_putchar to write strings. */
|
||||||
|
|
Loading…
Reference in a new issue