From: James Golovich Date: Thu, 6 May 2004 20:23:48 +0000 (+0000) Subject: Use ast_strlen_zero in logger.c X-Git-Tag: 1.0.0-rc1~538 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb8d1dbb3a31f2fd8eb1c939220523667fd1ff54;p=thirdparty%2Fasterisk.git Use ast_strlen_zero in logger.c git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2907 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/logger.c b/logger.c index cd207b8db7..fa73477ea1 100755 --- a/logger.c +++ b/logger.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -126,7 +127,7 @@ static struct logchannel *make_logchannel(char *channel, char *components, int l char *facility; CODE *cptr; - if (!strlen(channel)) + if (ast_strlen_zero(channel)) return NULL; chan = malloc(sizeof(struct logchannel));