From: Russell Bryant Date: Fri, 4 Jun 2010 21:42:58 +0000 (+0000) Subject: Get rid of warning when the console is configured without logger levels X-Git-Tag: 1.6.2.10-rc1~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=613fc6101265c5aada13d8f21a8f6bfb208e0810;p=thirdparty%2Fasterisk.git Get rid of warning when the console is configured without logger levels git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268204 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/logger.c b/main/logger.c index 2d81b16047..bf874811cd 100644 --- a/main/logger.c +++ b/main/logger.c @@ -189,7 +189,10 @@ static int make_components(const char *s, int lineno) char *stringp = ast_strdupa(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"))