aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-10 22:53:34 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-10 22:53:34 +0000
commitdb1bbc8a351d3b4f07c6f7cebba74aede9fdb5c3 (patch)
tree708c80ab2e4679f69464ab59c97f82404604709b /res
parentbb812cd83bb83ded1c99cbe763933c3c94cbce30 (diff)
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! ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@162927 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_musiconhold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 74bcb587c..bebc08a4e 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -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;
}