mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user