From 53d09cbaf749288f46882ec0cbf5e4196ef2ce15 Mon Sep 17 00:00:00 2001
From: Russell Bryant <russell@russellbryant.com>
Date: Fri, 5 May 2006 16:34:35 +0000
Subject: [PATCH] oops :)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24876 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_while.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/app_while.c b/apps/app_while.c
index 7af5f31c04..ea0fd4986f 100644
--- a/apps/app_while.c
+++ b/apps/app_while.c
@@ -277,7 +277,7 @@ static int _while_exec(struct ast_channel *chan, void *data, int end)
 	}
 	
 
-	if ((!end && !pbx_check_condition(condition)) || (end == 2)) {
+	if ((!end && !pbx_checkcondition((char *) condition)) || (end == 2)) {
 		/* Condition Met (clean up helper vars) */
 		const char *goto_str;
 		pbx_builtin_setvar_helper(chan, varname, NULL);
-- 
GitLab