diff options
Diffstat (limited to 'apps/app_senddtmf.c')
-rwxr-xr-x | apps/app_senddtmf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_senddtmf.c b/apps/app_senddtmf.c index 58e99b21c..a8731e5dd 100755 --- a/apps/app_senddtmf.c +++ b/apps/app_senddtmf.c @@ -19,6 +19,7 @@ #include <asterisk/module.h> #include <asterisk/translate.h> #include <asterisk/options.h> +#include <asterisk/utils.h> #include <string.h> #include <stdlib.h> #include <pthread.h> @@ -44,7 +45,7 @@ static int senddtmf_exec(struct ast_channel *chan, void *data) struct localuser *u; char *digits = data; - if (!digits || !strlen(digits)) { + if (!digits || ast_strlen_zero(digits)) { ast_log(LOG_WARNING, "SendDTMF requires an argument (digits or *#aAbBcCdD)\n"); return -1; } |