summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2014-08-27 18:33:12 -0400
committerwm4 <wm4@nowhere>2014-08-28 12:02:50 +0200
commit2a44e2d1b2633bbd85a3785999305a6cccdfab68 (patch)
tree15054db9627d086104ebbb5a0d57313b879a64f4
parent9780ff96427d6d68ce6e13a7c02fad14192f00a3 (diff)
downloadmpv-2a44e2d1b2633bbd85a3785999305a6cccdfab68.tar.bz2
mpv-2a44e2d1b2633bbd85a3785999305a6cccdfab68.tar.xz
tv: initialize frequencies to 0
-rw-r--r--stream/tv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/tv.c b/stream/tv.c
index 65260e04c0..bb39cf2e53 100644
--- a/stream/tv.c
+++ b/stream/tv.c
@@ -637,7 +637,7 @@ int open_tv(tvi_handle_t *tvh)
/* grep frequency in chanlist */
{
- unsigned long i2;
+ unsigned long i2 = 0;
int freq;
tv_get_freq(tvh, &i2);
@@ -797,7 +797,7 @@ int tv_get_signal(tvi_handle_t *tvh)
*
*/
int tv_step_freq(tvi_handle_t* tvh, float step_interval){
- unsigned long frequency;
+ unsigned long frequency = 0;
tvh->tv_param->scan=0;
tv_get_freq(tvh,&frequency);