From 9f5f95fe8702d6c105f7975c5ca02423b80c03f5 Mon Sep 17 00:00:00 2001
From: James Golovich <james@gnuinter.net>
Date: Sun, 17 Oct 2004 05:16:22 +0000
Subject: [PATCH] Remove late-night excuse for wasting cpu cycles.  revert
 previous res_agi change

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

diff --git a/res/res_agi.c b/res/res_agi.c
index 69133e7c48..b6f6edebb8 100755
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -827,7 +827,7 @@ static int handle_exec(struct ast_channel *chan, AGI *agi, int argc, char **argv
 	app = pbx_findapp(argv[1]);
 
 	if (app) {
-		res = pbx_exec(chan, app, argv[2] ? argv[2] : NULL, 1);
+		res = pbx_exec(chan, app, argv[2], 1);
 	} else {
 		ast_log(LOG_WARNING, "Could not find application (%s)\n", argv[1]);
 		res = -2;
-- 
GitLab