Merged revisions 330217 via svnmerge from
authorSean Bright <sean@malleable.com>
Fri, 29 Jul 2011 17:20:20 +0000 (17:20 +0000)
committerSean Bright <sean@malleable.com>
Fri, 29 Jul 2011 17:20:20 +0000 (17:20 +0000)
https://origsvn.digium.com/svn/asterisk/branches/10

................
  r330217 | seanbright | 2011-07-29 13:19:42 -0400 (Fri, 29 Jul 2011) | 9 lines

  Merged revisions 330213 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.8

  ........
    r330213 | seanbright | 2011-07-29 13:18:56 -0400 (Fri, 29 Jul 2011) | 2 lines

    Correct the check for O_RDONLY.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@330221 65c4cc65-6c06-0410-ace0-fbb531ad65f3

formats/format_wav.c

index 17a4af0..956b13e 100644 (file)
@@ -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;
        }