aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/res_musiconhold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index cd1ad2ea0..763d9e022 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -919,7 +919,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