aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_agi.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-12 21:57:30 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-12 21:57:30 +0000
commit9098e32c0fd22ca9f4cb5fbf17480b36f93f005a (patch)
tree7d332b43882650879add410ee316edb28c5268ac /res/res_agi.c
parent8dc057da35cd6a6e0a3caaa976b761d86a8e1304 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@82297 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_agi.c')
-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 01d3d6ac1..d72c01d3a 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 {