mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-15 22:38:08 +00:00
Correct the check for O_RDONLY.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -340,7 +340,7 @@ static void wav_close(struct ast_filestream *s)
|
||||
char zero = 0;
|
||||
struct wav_desc *fs = (struct wav_desc *)s->_private;
|
||||
|
||||
if ((s->mode & O_RDONLY) == O_RDONLY) {
|
||||
if (s->mode == O_RDONLY) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user