diff options
author | James Golovich <james@gnuinter.net> | 2004-10-13 22:47:42 +0000 |
---|---|---|
committer | James Golovich <james@gnuinter.net> | 2004-10-13 22:47:42 +0000 |
commit | 8b8d26f9bc4996c725061a27e351698fd64cd825 (patch) | |
tree | 4eb8f9fc181bdc2ba156c858dde38a2d3401757c /res/res_agi.c | |
parent | 3673eeb23f618410e2126f5174c066539894207d (diff) |
Fix pbx_builtin_setlanguage to not seg when data is a NULL ptr. Also fix AGI so we dont run into this with other specific problems as well. (bug 2641)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3990 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_agi.c')
-rwxr-xr-x | res/res_agi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index b6f6edebb..69133e7c4 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], 1); + res = pbx_exec(chan, app, argv[2] ? argv[2] : NULL, 1); } else { ast_log(LOG_WARNING, "Could not find application (%s)\n", argv[1]); res = -2; |