add missing error handling

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-01-20 09:01:25 +01:00
parent 14284856a2
commit b09a4a8dff

View file

@ -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);