change a couple uses of !strlen() to ast_strlen_zero(). Oddly enough, one of
authorRussell Bryant <russell@russellbryant.com>
Fri, 7 Apr 2006 16:28:50 +0000 (16:28 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 7 Apr 2006 16:28:50 +0000 (16:28 +0000)
these used to be this way and got changed ...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18309 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 8304744..73028d3 100644 (file)
@@ -13514,7 +13514,7 @@ static int sip_sipredirect(struct sip_pvt *p, const char *dest)
        if (!host) {
                char *localtmp;
                ast_copy_string(tmp, get_header(&p->initreq, "To"), sizeof(tmp));
-               if (!strlen(tmp)) {
+               if (ast_strlen_zero(tmp)) {
                        ast_log(LOG_ERROR, "Cannot retrieve the 'To' header from the original SIP request!\n");
                        return 0;
                }
@@ -13525,7 +13525,7 @@ static int sip_sipredirect(struct sip_pvt *p, const char *dest)
                        localtmp++;
                        /* This is okey because lhost and lport are as big as tmp */
                        sscanf(localtmp, "%[^<>:; ]:%[^<>:; ]", lhost, lport);
-                       if (!strlen(lhost)) {
+                       if (ast_strlen_zero(lhost)) {
                                ast_log(LOG_ERROR, "Can't find the host address\n");
                                return 0;
                        }