summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kristjansson <danielk@cuymedia.net>2011-06-27 21:22:29 (GMT)
committer Daniel Kristjansson <danielk@cuymedia.net>2011-06-27 21:24:12 (GMT)
commitdb67f842c845d5e6ebf926ac9b3c30e7586763a3 (patch)
treeb986d2d10e55dccd6cb780d9d6738ba58854a982
parent04334efbb0f0497f76256da1eda5cd1f205b4efa (diff)
Fixes #9716. for \(int i... shadowed the int i we had declared earlier for that loop so we could check whether the for loop exited prematurely.
-rw-r--r--mythtv/libs/libmythtv/cc708decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/libs/libmythtv/cc708decoder.cpp b/mythtv/libs/libmythtv/cc708decoder.cpp
index 9dc6e32..4214772 100644
--- a/mythtv/libs/libmythtv/cc708decoder.cpp
+++ b/mythtv/libs/libmythtv/cc708decoder.cpp
@@ -158,7 +158,7 @@ static void parse_cc_service_stream(CC708Reader* cc, uint service_num)
cc->delayed, blk_start, blk_size);
*/
- for (int i = (cc->delayed[service_num]) ? blk_size : blk_start;
+ for (i = (cc->delayed[service_num]) ? blk_size : blk_start;
i < blk_size; )
{
const int old_i = i;