diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-09-19 23:08:35 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-09-19 23:08:35 +0000 |
commit | 8b79aba99255e67fce3537e885b5b25df5837458 (patch) | |
tree | 8882a6cfc1d979310957cc2bcd9d53999b2bde18 /res/res_musiconhold.c | |
parent | 4c2874b9949f363993ccd66bf3da3158c0fd67ee (diff) |
do this fix properly :-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_musiconhold.c')
-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); |