aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2011-01-31 20:59:37 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2011-01-31 20:59:37 +0000
commitc93bf5796d1446e6781379cf1a2565ba503e9777 (patch)
treebc0c71636e5315e175cc8a8a8b171d53fdab1ccd
parent6f82f539df7fd562c2b79d5d75b47f4c935613f6 (diff)
Merged revisions 305129 via svnmerge from
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: http://svn.digium.com/svn/asterisk/branches/1.6.2@305130 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--res/res_musiconhold.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 7499abde7..ef15905d8 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -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;