aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-12 21:56:32 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-12 21:56:32 +0000
commitaefd62c483705192d1ae44bd18e9b8e27be6c50a (patch)
treeb6329aa58fa16b039574ba69e4345d48c4383d1a /res
parent6cd63e8b822c6519d9eeb979f4f97e53a276989d (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@82296 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_agi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index 77472b011..288b0bc7c 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 {