]> granicus.if.org Git - icinga2/commitdiff
Make argument for the return keyword optional
authorGunnar Beutner <gunnar@beutner.name>
Fri, 16 Jan 2015 07:41:27 +0000 (08:41 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Fri, 16 Jan 2015 07:41:27 +0000 (08:41 +0100)
fixes #8237

lib/config/config_parser.yy

index 2abebd6f7c656d4cbc14c76200578472eef98be3..91eb317a43eaf0b1ee5aea5f6aed83e9f8842db9 100644 (file)
@@ -591,7 +591,7 @@ lterm: type
 
                $$ = MakeLiteral();
        }
-       | T_RETURN rterm
+       | T_RETURN optional_rterm
        {
                $$ = new ReturnExpression($2, @$);
        }