aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_txtcidname.c
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-07-02 19:24:16 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-07-02 19:24:16 +0000
commitc2a463a19ac227bd26a3e09a90c0cf4b7f6f1e15 (patch)
treefdc0d4b52d7ea2459ecc84ca721f1d1581723665 /apps/app_txtcidname.c
parentc6bb614eeddcc2a1aef9d6e567c94eab9e9742f4 (diff)
Make app_txtcidname.c use ast_strlen_zero and cleanup the code a bit
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3376 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_txtcidname.c')
-rwxr-xr-xapps/app_txtcidname.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/app_txtcidname.c b/apps/app_txtcidname.c
index dd72ed097..1aa151450 100755
--- a/apps/app_txtcidname.c
+++ b/apps/app_txtcidname.c
@@ -65,11 +65,10 @@ static int txtcidname_exec(struct ast_channel *chan, void *data)
LOCAL_USER_REMOVE(u);
/* Parse it out */
if (res > 0) {
- if(strlen(txt) > 0)
- {
+ if (!ast_strlen_zero(txt)) {
pbx_builtin_setvar_helper(chan, "TXTCIDNAME", txt);
#if 0
- printf("TXTCIDNAME got '%s'\n", txt);
+ ast_log(LOG_DEBUG, "TXTCIDNAME got '%s'\n", txt);
#endif
}
}