[svn-commits] russell: branch 1.6.2 r268204 - /branches/1.6.2/main/logger.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jun 4 16:43:02 CDT 2010


Author: russell
Date: Fri Jun  4 16:42:58 2010
New Revision: 268204

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=268204
Log:
Get rid of warning when the console is configured without logger levels

Modified:
    branches/1.6.2/main/logger.c

Modified: branches/1.6.2/main/logger.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/logger.c?view=diff&rev=268204&r1=268203&r2=268204
==============================================================================
--- branches/1.6.2/main/logger.c (original)
+++ branches/1.6.2/main/logger.c Fri Jun  4 16:42:58 2010
@@ -189,7 +189,10 @@
 	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"))




More information about the svn-commits mailing list