aboutsummaryrefslogtreecommitdiffstats
path: root/logger.c
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-06 20:23:48 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-06 20:23:48 +0000
commit36fade008bd114b48860792ae9c70914dcfc1632 (patch)
treea14452249475af4ec86a6545b3ee8beb3d18701f /logger.c
parent8f0253350ec7d1ed6792c18193c53c0d313a6c1f (diff)
Use ast_strlen_zero in logger.c
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2907 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'logger.c')
-rwxr-xr-xlogger.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/logger.c b/logger.c
index cd207b8db..fa73477ea 100755
--- 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));