Merged revisions 162926 via svnmerge from
authorJeff Peeler <jpeeler@digium.com>
Wed, 10 Dec 2008 22:53:34 +0000 (22:53 +0000)
committerJeff Peeler <jpeeler@digium.com>
Wed, 10 Dec 2008 22:53:34 +0000 (22:53 +0000)
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!

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@162927 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_musiconhold.c

index 74bcb58..bebc08a 100644 (file)
@@ -414,7 +414,7 @@ static int spawn_mp3(struct mohclass *class)
                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;
                }