From: Russell Bryant Date: Fri, 4 Jun 2010 21:40:53 +0000 (+0000) Subject: Get rid of a warning that gets printed out when the console is configured without... X-Git-Tag: 1.4.34-rc1~2^2~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d65386480bde005914b5a63b1efc05798b99586;p=thirdparty%2Fasterisk.git 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 --- 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"))