[asterisk-commits] jpeeler: trunk r162927 - in /trunk: ./	res/res_musiconhold.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Wed Dec 10 16:53:34 CST 2008
    
    
  
Author: jpeeler
Date: Wed Dec 10 16:53:34 2008
New Revision: 162927
URL: http://svn.digium.com/view/asterisk?view=rev&rev=162927
Log:
Merged revisions 162926 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r162926 | jpeeler | 2008-12-10 16:52:51 -0600 (Wed, 10 Dec 2008) | 3 lines
Oops, inverted logic for a strcasecmp check. Pointed out by mmichelson, thanks!
........
Modified:
    trunk/   (props changed)
    trunk/res/res_musiconhold.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/res/res_musiconhold.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_musiconhold.c?view=diff&rev=162927&r1=162926&r2=162927
==============================================================================
--- trunk/res/res_musiconhold.c (original)
+++ trunk/res/res_musiconhold.c Wed Dec 10 16:53:34 2008
@@ -414,7 +414,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 asterisk-commits
mailing list