]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: parser: Lines can already be empty (but must be ended by newline)
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 14 Mar 2019 04:35:49 +0000 (04:35 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 14 Mar 2019 04:35:49 +0000 (04:35 +0000)
This resolves another ambiguity in the parser

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/parser/grammar.y

index d126674f08cb6cc554c11b49a61054414644cf6f..35bc72fcd425ae6150104328debd6b2fd56f963e 100644 (file)
@@ -140,10 +140,7 @@ text                                               : text line
                                                                }
                                                        }
                                                        | line
-                                                       | /* empty */
-                                                       {
-                                                               $$ = NULL;
-                                                       };
+                                                       ;
 
 block_opening                          : variable NEWLINE
                                                        {