From: Jason Parker Date: Mon, 31 Jan 2011 20:56:25 +0000 (+0000) Subject: Set file descriptors to -1 on creation, so that we don't see weirdness later. X-Git-Tag: 1.4.41-rc1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23a1e7bb49c4228b4675467d36f49170270b6ec7;p=thirdparty%2Fasterisk.git 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 --- 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;