mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
fix bug added to my code so I don
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4659 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -713,8 +713,10 @@ static int moh_scan_files(struct mohclass *class) {
|
||||
if (!S_ISREG(statbuf.st_mode))
|
||||
continue;
|
||||
|
||||
if ((ext = strrchr(filepath, '.')))
|
||||
if ((ext = strrchr(filepath, '.'))) {
|
||||
*ext = '\0';
|
||||
ext++;
|
||||
}
|
||||
|
||||
/* check to see if this file's format can be opened */
|
||||
if (ast_fileexists(filepath, ext, NULL) == -1)
|
||||
|
Reference in New Issue
Block a user