From 9d65386480bde005914b5a63b1efc05798b99586 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Fri, 4 Jun 2010 21:40:53 +0000 Subject: [PATCH] Get rid of a warning that gets printed out when the console is configured without any logger levels git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@268203 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/logger.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/logger.c b/main/logger.c index a0beca1cd7..c0df0d00c3 100644 --- a/main/logger.c +++ b/main/logger.c @@ -147,7 +147,10 @@ static int make_components(char *s, int lineno) char *stringp = s; while ((w = strsep(&stringp, ","))) { - w = ast_skip_blanks(w); + w = ast_strip(w); + if (ast_strlen_zero(w)) { + continue; + } if (!strcasecmp(w, "error")) res |= (1 << __LOG_ERROR); else if (!strcasecmp(w, "warning")) -- 2.47.3