]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
add missing error handling
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 20 Jan 2010 08:01:25 +0000 (09:01 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 20 Jan 2010 08:01:25 +0000 (09:01 +0100)
normal/main.c

index 555d56aba5671447bfe38d3d670f5780e1fac71f..0c192712fa3ee2caa4c100b16c1f5d6862183171 100644 (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);