]> granicus.if.org Git - icinga2/commitdiff
Fix: 'return' keyword doesn't work inside for loops
authorGunnar Beutner <gunnar@beutner.name>
Sat, 21 Mar 2015 23:04:57 +0000 (00:04 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Sat, 21 Mar 2015 23:04:57 +0000 (00:04 +0100)
fixes #8834

lib/config/vmops.hpp

index a01448e1bed65ca5f9bca18616bdbfd81cca5112..9d7307cddf679e7b71a5173a4e61f8098d3bd979 100644 (file)
@@ -161,7 +161,7 @@ public:
                return Empty;
        }
 
-       static inline Value For(ScriptFrame& frame, const String& fkvar, const String& fvvar, const Value& value, Expression *expression, const DebugInfo& debugInfo = DebugInfo())
+       static inline ExpressionResult For(ScriptFrame& frame, const String& fkvar, const String& fvvar, const Value& value, Expression *expression, const DebugInfo& debugInfo = DebugInfo())
        {
                if (value.IsObjectType<Array>()) {
                        if (!fvvar.IsEmpty())