diff --git a/res/res_agi.c b/res/res_agi.c index 69133e7c484bebf45c519b9458c4e17ac9e59bdc..b6f6edebb8066d31478f76fc16b9ff721725cfdf 100755 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -827,7 +827,7 @@ static int handle_exec(struct ast_channel *chan, AGI *agi, int argc, char **argv app = pbx_findapp(argv[1]); if (app) { - res = pbx_exec(chan, app, argv[2] ? argv[2] : NULL, 1); + res = pbx_exec(chan, app, argv[2], 1); } else { ast_log(LOG_WARNING, "Could not find application (%s)\n", argv[1]); res = -2;