From: Joshua Colp Date: Wed, 23 May 2007 13:07:28 +0000 (+0000) Subject: Fix compiling of res_musiconhold under dev mode. X-Git-Tag: 1.6.0-beta1~3^2~2612 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=998261f602a47f9a1b30071f759e3f1732653f5d;p=thirdparty%2Fasterisk.git Fix compiling of res_musiconhold under dev mode. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65590 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 6b27a084bb..ec049482c5 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -342,7 +342,7 @@ static struct mohclass *get_mohbydigit(char digit) static void moh_handle_digit(struct ast_channel *chan, char digit) { struct mohclass *moh; - const char *classname; + const char *classname = NULL; AST_RWLIST_RDLOCK(&mohclasses); if ((moh = get_mohbydigit(digit)))