diff options
Diffstat (limited to 'main')
-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 a0beca1cd..c0df0d00c 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")) |