Skip to content
Browse files

Backport [27271] from trunk

Fixes a valgrind-detected issue (reading outside of allocated memory)



git-svn-id: http://svn.mythtv.org/svn/branches/release-0-24-fixes@27272 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information...
1 parent 47ebb94 commit 6427d5ae20660b06f98eb27649ca86b6958ca672 @Beirdo Beirdo committed Nov 18, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmyth/audiooutputsettings.cpp
View
2 mythtv/libs/libmyth/audiooutputsettings.cpp
@@ -239,7 +239,7 @@ void AudioOutputSettings::SetBestSupportedChannels(int channels)
vector<int>::reverse_iterator it;
for (it = m_channels.rbegin();
- *it >= channels && it < m_channels.rend();
+ it != m_channels.rend() && *it >= channels;
it++)
m_channels.pop_back();
m_channels.push_back(channels);

0 comments on commit 6427d5a

Please sign in to comment.
Something went wrong with that request. Please try again.