summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
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;
}