aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-03 20:03:36 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-03 20:03:36 +0000
commit42521c0cc15fdbc8dba094fa0afd229fef4a8f70 (patch)
treeffe5b8e7469bb5d6a6b43b847c7e34a0454f65ff /res
parent77d42a9149c8a095fb1408d08cb3477195966297 (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@38849 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_musiconhold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 01d8a57d6..426965a81 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -219,7 +219,7 @@ static int ast_moh_files_next(struct ast_channel *chan)
state->pos %= state->class->total_files;
/* check to see if this file's format can be opened */
- if (ast_fileexists(state->class->filearray[state->pos], NULL, NULL) != -1)
+ if (ast_fileexists(state->class->filearray[state->pos], NULL, NULL) > 0)
break;
}