From dda2438b03c7c10d9eea71c8057bda2354dd4c61 Mon Sep 17 00:00:00 2001 From: Jeff Peeler Date: Wed, 10 Dec 2008 22:52:51 +0000 Subject: [PATCH] Oops, inverted logic for a strcasecmp check. Pointed out by mmichelson, thanks! git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@162926 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_musiconhold.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 8b69cd1d4c..80976a404c 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; }