]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Get rid of warning when the console is configured without logger levels
authorRussell Bryant <russell@russellbryant.com>
Fri, 4 Jun 2010 21:42:58 +0000 (21:42 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 4 Jun 2010 21:42:58 +0000 (21:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268204 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/logger.c

index 2d81b160476f22396cbe178673344b769fe9bb60..bf874811cd392cb0a90e38b6328ec301b7968316 100644 (file)
@@ -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"))