]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make app_txtcidname.c use ast_strlen_zero and cleanup the code a bit
authorJames Golovich <james@gnuinter.net>
Fri, 2 Jul 2004 19:24:16 +0000 (19:24 +0000)
committerJames Golovich <james@gnuinter.net>
Fri, 2 Jul 2004 19:24:16 +0000 (19:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3376 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_txtcidname.c

index dd72ed09798783c022de9077096bdc3bbffde9a1..1aa1514509385515aa2a6bd63035bdfaaea60ed7 100755 (executable)
@@ -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
                }
        }