]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Get rid of a warning that gets printed out when the console is configured without...
authorRussell Bryant <russell@russellbryant.com>
Fri, 4 Jun 2010 21:40:53 +0000 (21:40 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 4 Jun 2010 21:40:53 +0000 (21:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@268203 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/logger.c

index a0beca1cd743b86c3e28c139423dc75e1b91bb58..c0df0d00c3358c286c1f472e3f28e908c45cdd23 100644 (file)
@@ -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"))