dect
/
asterisk
Archived
13
0
Fork 0

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
This commit is contained in:
citats 2004-07-02 19:24:16 +00:00
parent c6bb614eed
commit c2a463a19a
1 changed files with 2 additions and 3 deletions

View File

@ -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
}
}