diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index bce86a8e73..f905b8aa66 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -1277,6 +1277,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;