diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-04 21:42:58 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-04 21:42:58 +0000 |
commit | 335d5554323cd2650c7283d5f79237691cdfde14 (patch) | |
tree | f46acd1250c067ccb974875ef64c4a9e1c5fac02 | |
parent | 3ee45445dbb2b2acd64232ee93d3b64783eed7c8 (diff) |
Get rid of warning when the console is configured without logger levels
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@268204 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | main/logger.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/logger.c b/main/logger.c index 2d81b1604..bf874811c 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")) |