[svn-commits] jpeeler: branch 1.4 r162926 - /branches/1.4/res/res_musiconhold.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Dec 10 16:52:51 CST 2008


Author: jpeeler
Date: Wed Dec 10 16:52:51 2008
New Revision: 162926

URL: http://svn.digium.com/view/asterisk?view=rev&rev=162926
Log:
Oops, inverted logic for a strcasecmp check. Pointed out by mmichelson, thanks!


Modified:
    branches/1.4/res/res_musiconhold.c

Modified: branches/1.4/res/res_musiconhold.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_musiconhold.c?view=diff&rev=162926&r1=162925&r2=162926
==============================================================================
--- branches/1.4/res/res_musiconhold.c (original)
+++ branches/1.4/res/res_musiconhold.c Wed Dec 10 16:52:51 2008
@@ -371,7 +371,7 @@
 		files = 1;
 	} else {
 		dir = opendir(class->dir);
-		if (!dir && !strncasecmp(class->dir, "http://", 7)) {
+		if (!dir && strncasecmp(class->dir, "http://", 7)) {
 			ast_log(LOG_WARNING, "%s is not a valid directory\n", class->dir);
 			return -1;
 		}




More information about the svn-commits mailing list