aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {