add missing error handling

This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2010-01-20 09:01:25 +01:00
1 parent 14284856a2
commit b09a4a8dff
1 file changed
+3
+3
View File
@@ -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);