]> git.ozlabs.org Git - petitboot/blobdiff - discover/grub2/parser.y
discover/grub2: Initial environment handling
[petitboot] / discover / grub2 / parser.y
index d57c732a8382152c690fbabad381b5b266c0f509..eb61f556491c23c503caea2958fa29a408cd866a 100644 (file)
@@ -56,7 +56,7 @@ static void yyerror(struct grub2_parser *, char const *s);
 %%
 
 script: statements {
-               parser->statements = $1;
+               parser->script->statements = $1;
        }
 
 statements: statement {
@@ -65,6 +65,7 @@ statements: statement {
        }
        | statements statement {
                statement_append($1, $2);
+               $$ = $1;
        }
 
 statement: TOKEN_EOL {