diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index c0ef8f4caee2c4f7bdc15c4a600216d6ad28dfe1..a67f3eb5190f415d5b2543c13e857dff5bb7bbff 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -950,7 +950,7 @@ static void local_ast_moh_cleanup(struct ast_channel *chan) static int local_ast_moh_start(struct ast_channel *chan, const char *mclass, const char *interpclass) { - struct mohclass *mohclass; + struct mohclass *mohclass = NULL; /* The following is the order of preference for which class to use: * 1) The channels explicitly set musicclass, which should *only* be