Ticket #6962: libs_libmythfreesurround-init-vars

File libs_libmythfreesurround-init-vars, 1006 bytes (added by Erik Hovland <erik@…>, 11 years ago)

Initialize i

Line 
1Make sure variables are initialized.
2
3From: Erik Hovland <erik@hovland.org>
4
5
6---
7
8 mythtv/libs/libmythfreesurround/freesurround.cpp |    4 ++--
9 1 files changed, 2 insertions(+), 2 deletions(-)
10
11
12diff --git a/mythtv/libs/libmythfreesurround/freesurround.cpp b/mythtv/libs/libmythfreesurround/freesurround.cpp
13index fc7ed8f..e0cf162 100644
14--- a/mythtv/libs/libmythfreesurround/freesurround.cpp
15+++ b/mythtv/libs/libmythfreesurround/freesurround.cpp
16@@ -276,7 +276,7 @@ FreeSurround::~FreeSurround()
17 
18 uint FreeSurround::putSamples(short* samples, uint numSamples, uint numChannels, int step)
19 {
20-    int i;
21+    int i = 0;
22     int ic = in_count;
23     int bs = block_size/2;
24     bool process = true;
25@@ -426,7 +426,7 @@ uint FreeSurround::putSamples(short* samples, uint numSamples, uint numChannels,
26 
27 uint FreeSurround::putSamples(char* samples, uint numSamples, uint numChannels, int step)
28 {
29-    int i;
30+    int i = 0;
31     int ic = in_count;
32     int bs = block_size/2;
33     bool process = true;