Merged revisions 74323 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Tue, 10 Jul 2007 16:01:27 +0000 (16:01 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 10 Jul 2007 16:01:27 +0000 (16:01 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74323 | russell | 2007-07-10 11:00:11 -0500 (Tue, 10 Jul 2007) | 1 line

fix an uninitialized variable
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74324 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_musiconhold.c

index c0ef8f4..a67f3eb 100644 (file)
@@ -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