[asterisk-commits] qwell: branch 1.4 r305129 - /branches/1.4/res/res_musiconhold.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jan 31 14:56:30 CST 2011
Author: qwell
Date: Mon Jan 31 14:56:25 2011
New Revision: 305129
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=305129
Log:
Set file descriptors to -1 on creation, so that we don't see weirdness later.
Modified:
branches/1.4/res/res_musiconhold.c
Modified: branches/1.4/res/res_musiconhold.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/res/res_musiconhold.c?view=diff&rev=305129&r1=305128&r2=305129
==============================================================================
--- branches/1.4/res/res_musiconhold.c (original)
+++ branches/1.4/res/res_musiconhold.c Mon Jan 31 14:56:25 2011
@@ -1159,6 +1159,8 @@
if ((class = ao2_alloc(sizeof(*class), moh_class_destructor))) {
class->format = AST_FORMAT_SLINEAR;
+ class->srcfd = -1;
+ class->pseudofd = -1;
}
return class;
More information about the asterisk-commits
mailing list