diff options
author | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-10 22:52:51 +0000 |
---|---|---|
committer | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-10 22:52:51 +0000 |
commit | 86b1ba3851693390f3e251965d7770cd22b474b9 (patch) | |
tree | 3a8aa9de3aa8a2a18ee307b6c81d90f8812bf9fa /res/res_musiconhold.c | |
parent | 0dc408891e98c07461cf85cfd922e27a19ebd22e (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/res_musiconhold.c')
-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; } |