aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_senddtmf.c
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-09 07:51:44 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-09 07:51:44 +0000
commit9bd61aa747cedeb161b46ca536312d8e569bfbf5 (patch)
treee02913e8cd2ec7f6236ac862e98d11dc9fd199ce /apps/app_senddtmf.c
parent7bfd090538d068ea86150b0a7a27d5b2bda1df39 (diff)
More ast_strlen_zero changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2930 f38db490-d61c-443f-a65b-d21fe96a405b
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;
}