mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 19:52:48 +00:00
Use ast_strlen_zero in logger.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2907 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
3
logger.c
3
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));
|
||||
|
||||
|
Reference in New Issue
Block a user