diff options
-rwxr-xr-x | apps/app_txtcidname.c | 5 |
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 } } |