From 3ddbe8e0b6a4ca7803897e6c8659304150e6307b Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 10 Jul 2007 16:00:11 +0000 Subject: [PATCH] fix an uninitialized variable git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@74323 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_musiconhold.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index cd1ad2ea0f..763d9e0225 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