From a955df8eb90e9e4526fdae9b3d8e5f21620692a2 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 12 Sep 2007 21:57:30 +0000 Subject: [PATCH] Merged revisions 82296 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r82296 | russell | 2007-09-12 16:56:32 -0500 (Wed, 12 Sep 2007) | 3 lines Fix a check of the wrong pointer, as pointed out by an XXX comment left in the code. The problem was harmless, however. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82297 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 01d3d6ac1e..d72c01d3ac 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -1201,7 +1201,7 @@ static int handle_getvariablefull(struct ast_channel *chan, AGI *agi, int argc, } else { chan2 = chan; } - if (chan) { /* XXX isn't this chan2 ? */ + if (chan2) { pbx_substitute_variables_helper(chan2, argv[3], tmp, sizeof(tmp) - 1); ast_agi_fdprintf(agi->fd, "200 result=1 (%s)\n", tmp); } else {