From 23a1e7bb49c4228b4675467d36f49170270b6ec7 Mon Sep 17 00:00:00 2001 From: Jason Parker Date: Mon, 31 Jan 2011 20:56:25 +0000 Subject: [PATCH] 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.4@305129 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_musiconhold.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index f67fa5a1cc..fae51b9a2f 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -1159,6 +1159,8 @@ static struct mohclass *moh_class_malloc(void) if ((class = ao2_alloc(sizeof(*class), moh_class_destructor))) { class->format = AST_FORMAT_SLINEAR; + class->srcfd = -1; + class->pseudofd = -1; } return class; -- 2.47.2