summaryrefslogtreecommitdiff
path: root/apps/app_senddtmf.c
diff options
context:
space:
mode:
authorJames Golovich <james@gnuinter.net>2004-05-09 07:51:44 +0000
committerJames Golovich <james@gnuinter.net>2004-05-09 07:51:44 +0000
commit8ef3b1544be0ac8bfcb77f297c2eff8a6f8b3aec (patch)
treee02913e8cd2ec7f6236ac862e98d11dc9fd199ce /apps/app_senddtmf.c
parent3e3642433bbd87d363394bdf8341a6047f1a9eae (diff)
More ast_strlen_zero changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2930 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_senddtmf.c')
-rwxr-xr-xapps/app_senddtmf.c3
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;
}