]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix a small logical error when loading moh classes.
authorMark Michelson <mmichelson@digium.com>
Wed, 8 Apr 2009 16:52:03 +0000 (16:52 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 8 Apr 2009 16:52:03 +0000 (16:52 +0000)
commit89d04eef98cd8b72fcc3cffae437b95be649f15e
tree7f62924d0095f905264e5432303bccd5ddae5dee
parent6562e1025c8534c6bf325456a42a317cb698671e
Fix a small logical error when loading moh classes.

We were unconditionally incrementing the number of mohclasses
registered. However, we should actually only increment if the
call to moh_register was successful.

While this probably has never caused problems, I noticed it
and decided to fix it anyway.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@187045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_musiconhold.c