diff options
author | Mark Spencer <markster@digium.com> | 2004-05-04 19:11:25 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-05-04 19:11:25 +0000 |
commit | 19a080ddd780ac2fa053c8b40e171b67081b3e0f (patch) | |
tree | 6b28979729f7e9ea49043ca3e54b7889d188209f /apps/app_agi.c | |
parent | fdec9012eb3959c77a5a8357b01d0cd031c694f0 (diff) |
strlen fixes and don't destroy SIP channels that still have pending things on them (bug #1552 et al)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2890 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_agi.c')
-rwxr-xr-x | apps/app_agi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_agi.c b/apps/app_agi.c index 14fa27e49..fb73338d0 100755 --- a/apps/app_agi.c +++ b/apps/app_agi.c @@ -36,6 +36,7 @@ #include <asterisk/app.h> #include <asterisk/dsp.h> #include <asterisk/musiconhold.h> +#include <asterisk/utils.h> #include "../asterisk.h" #include "../astconf.h" @@ -1465,7 +1466,7 @@ static int agi_exec_full(struct ast_channel *chan, void *data, int enhanced, int int pid; char *stringp; AGI agi; - if (!data || !strlen(data)) { + if (!data || ast_strlen_zero(data)) { ast_log(LOG_WARNING, "AGI requires an argument (script)\n"); return -1; } |