mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 15:22:39 +00:00
add missing error handling
This commit is contained in:
1 parent
14284856a2
commit
b09a4a8dff
1 file changed
+3
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user