]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 305129 via svnmerge from
authorJason Parker <jparker@digium.com>
Mon, 31 Jan 2011 20:59:37 +0000 (20:59 +0000)
committerJason Parker <jparker@digium.com>
Mon, 31 Jan 2011 20:59:37 +0000 (20:59 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r305129 | qwell | 2011-01-31 14:56:25 -0600 (Mon, 31 Jan 2011) | 2 lines

  Set file descriptors to -1 on creation, so that we don't see weirdness later.
........

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

res/res_musiconhold.c

index 7499abde76b22ed9e5104dc12ad7b75b3cf780df..ef15905d8b098c41a76f1edb2bba0e3e37810186 100644 (file)
@@ -1253,6 +1253,8 @@ static struct mohclass *_moh_class_malloc(const char *file, int line, const char
 #endif
                )) {
                class->format = AST_FORMAT_SLINEAR;
+               class->srcfd = -1;
+               class->pseudofd = -1;
        }
 
        return class;