From: Michael Tremer Date: Sun, 10 Mar 2019 16:45:29 +0000 (+0000) Subject: libpakfire: parser: Set empty values to NULL X-Git-Tag: 0.9.28~1285^2~1089 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=de528421c78370fe87881f4ce4951d6a2cce7b45;p=pakfire.git libpakfire: parser: Set empty values to NULL Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/parser/grammar.y b/src/libpakfire/parser/grammar.y index e034a1fb4..9699f1e50 100644 --- a/src/libpakfire/parser/grammar.y +++ b/src/libpakfire/parser/grammar.y @@ -92,7 +92,10 @@ words : WORD $$ = $1; } | words WHITESPACE WORD - | /* empty */; + | /* empty */ + { + $$ = NULL; + }; line : whitespace words NEWLINE { @@ -101,7 +104,10 @@ line : whitespace words NEWLINE text : text line | line - | /* empty */; + | /* empty */ + { + $$ = NULL; + }; block_opening : variable NEWLINE {