From: Russell Bryant Date: Wed, 12 Sep 2007 21:56:32 +0000 (+0000) Subject: Fix a check of the wrong pointer, as pointed out by an XXX comment left in X-Git-Tag: 1.4.12~93 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b6653a436e6004760bdab3df5c743725b8aa7b0;p=thirdparty%2Fasterisk.git 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/branches/1.4@82296 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_agi.c b/res/res_agi.c index 77472b0112..288b0bc7ca 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -1206,7 +1206,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); fdprintf(agi->fd, "200 result=1 (%s)\n", tmp); } else {