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
|
||||
prompt = grub_asprintf ("%s>", parser->name);
|
||||
|
||||
if (!prompt)
|
||||
return grub_errno;
|
||||
|
||||
while (1)
|
||||
{
|
||||
*line = grub_cmdline_get (prompt);
|
||||
|
|
Loading…
Reference in a new issue