Allow empty attributes
authorDaniel Kouřil <kouril@ics.muni.cz>
Tue, 30 Mar 2010 11:24:11 +0000 (11:24 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Tue, 30 Mar 2010 11:24:11 +0000 (11:24 +0000)
org.glite.lb.server/src/policy_gram.y

index 16ab41f..3abe361 100644 (file)
@@ -82,12 +82,15 @@ rule                : RULE PERMIT '{' assignments '}'
                }
                ;
 
-assignments    : assignment assignments
+assignments    :
+               {
+                       $$ = NULL;
+               }
+               | assignment assignments
                {
                        $1->next = $2;
                        $$ = $1;
                }
-               | assignment
                ;
 
 assignment     : LITERAL '=' STRING