diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-19 23:08:35 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-19 23:08:35 +0000 |
commit | c64b6561e21b50ec5cbef5d4ea319c1e37975c91 (patch) | |
tree | 8882a6cfc1d979310957cc2bcd9d53999b2bde18 /res | |
parent | 3a260bee7ec177385a368a14dad9bd9ddc9bdd89 (diff) |
do this fix properly :-)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43302 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_musiconhold.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 408201706..130533069 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -778,8 +778,8 @@ static int moh_scan_files(struct mohclass *class) { if ((strlen(files_dirent->d_name) < 4)) continue; - /* Skip standard license file - it is not audio */ - if (!strcmp(files_dirent->d_name, "LICENSE")) + /* Skip files without extensions... they are not audio */ + if (!strchr(files_dirent->d_name, '.')) continue; snprintf(filepath, sizeof(filepath), "%s/%s", class->dir, files_dirent->d_name); |