[vlc-commits] access: dvb: fix uninitialized members

Francois Cartegnie git at videolan.org
Fri May 20 21:59:48 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri May 20 17:37:49 2016 +0200| [ebc28a21877915c98e439762bf5deb09ea0133bd] | committer: Francois Cartegnie

access: dvb: fix uninitialized members

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ebc28a21877915c98e439762bf5deb09ea0133bd
---

 modules/access/dvb/scan.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/access/dvb/scan.c b/modules/access/dvb/scan.c
index 8ac3924..6394d99 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -428,6 +428,10 @@ scan_t *scan_New( vlc_object_t *p_obj, const scan_parameter_t *p_parameter,
     scan_Prepare( p_obj, p_parameter, p_scan );
     p_scan->p_current = p_scan->p_scanlist;
 
+    p_scan->spectrum.i_index = 0;
+    p_scan->spectrum.i_symbolrate_index = 0;
+    p_scan->spectrum.modulation = 0;
+
     scan_Debug_Parameters( p_obj, p_parameter );
 
     return p_scan;



More information about the vlc-commits mailing list