aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-10 22:52:51 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-10 22:52:51 +0000
commit86b1ba3851693390f3e251965d7770cd22b474b9 (patch)
tree3a8aa9de3aa8a2a18ee307b6c81d90f8812bf9fa /res
parent0dc408891e98c07461cf85cfd922e27a19ebd22e (diff)
Oops, inverted logic for a strcasecmp check. Pointed out by mmichelson, thanks!
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@162926 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 8b69cd1d4..80976a404 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -371,7 +371,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;
}