Skip to content
Snippets Groups Projects
Commit bb8d1dbb authored by James Golovich's avatar James Golovich
Browse files

Use ast_strlen_zero in logger.c

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2907 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent f1d0d949
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <asterisk/config.h> #include <asterisk/config.h>
#include <asterisk/term.h> #include <asterisk/term.h>
#include <asterisk/cli.h> #include <asterisk/cli.h>
#include <asterisk/utils.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
...@@ -126,7 +127,7 @@ static struct logchannel *make_logchannel(char *channel, char *components, int l ...@@ -126,7 +127,7 @@ static struct logchannel *make_logchannel(char *channel, char *components, int l
char *facility; char *facility;
CODE *cptr; CODE *cptr;
if (!strlen(channel)) if (ast_strlen_zero(channel))
return NULL; return NULL;
chan = malloc(sizeof(struct logchannel)); chan = malloc(sizeof(struct logchannel));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment