diff options
-rw-r--r-- | res/res_musiconhold.c | 2 |
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; } |