Use ast_strlen_zero in logger.c
authorJames Golovich <james@gnuinter.net>
Thu, 6 May 2004 20:23:48 +0000 (20:23 +0000)
committerJames Golovich <james@gnuinter.net>
Thu, 6 May 2004 20:23:48 +0000 (20:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2907 65c4cc65-6c06-0410-ace0-fbb531ad65f3

logger.c

index cd207b8..fa73477 100755 (executable)
--- a/logger.c
+++ b/logger.c
@@ -22,6 +22,7 @@
 #include <asterisk/config.h>
 #include <asterisk/term.h>
 #include <asterisk/cli.h>
+#include <asterisk/utils.h>
 #include <string.h>
 #include <stdlib.h>
 #include <errno.h>
@@ -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));