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));