add missing error handling
This commit is contained in:
parent
14284856a2
commit
b09a4a8dff
1 changed files with 3 additions and 0 deletions
|
@ -570,6 +570,9 @@ grub_normal_read_line_real (char **line, int cont, int nested)
|
||||||
else
|
else
|
||||||
prompt = grub_asprintf ("%s>", parser->name);
|
prompt = grub_asprintf ("%s>", parser->name);
|
||||||
|
|
||||||
|
if (!prompt)
|
||||||
|
return grub_errno;
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
*line = grub_cmdline_get (prompt);
|
*line = grub_cmdline_get (prompt);
|
||||||
|
|
Loading…
Add table
Reference in a new issue