From: Automerge script Date: Thu, 3 Aug 2006 20:03:36 +0000 (+0000) Subject: automerge commit X-Git-Tag: 1.2.11-netsec~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06352345c100ade52e01249b2ecf04bf9c13e4b5;p=thirdparty%2Fasterisk.git automerge commit git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@38849 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 01d8a57d6d..426965a81e 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; }