aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-07 16:28:50 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-07 16:28:50 +0000
commitc12f6d26dd30d98c19b8756e9d86e9e371a6a0c2 (patch)
treef43291c287ab4036572e3c9fa00d7d9ba977e7bd /channels
parent6e477f048bc1e8ce8838d1c3d2f500a7e3ccc792 (diff)
change a couple uses of !strlen() to ast_strlen_zero(). Oddly enough, one of
these used to be this way and got changed ... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18309 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 8304744eb..73028d3df 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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;
}