diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-02-22 17:07:49 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-02-22 17:07:49 +0100 |
commit | 8a4a149a687de3e7c240c471dca14455d1850ea5 (patch) | |
tree | e3b996cd00e18b0249a957751979e1c4abef974e | |
parent | bf623fea2ef6ed0e5d2b381b1d66f08140fb1d78 (diff) |
libdvbv5: initialize v3 params
If the library falls back to DVBv3 API, ensure that the
frontend parameters will be set to zero before start filling
them.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r-- | lib/libdvbv5/dvb-fe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libdvbv5/dvb-fe.c b/lib/libdvbv5/dvb-fe.c index 68dd57c4..832b0eed 100644 --- a/lib/libdvbv5/dvb-fe.c +++ b/lib/libdvbv5/dvb-fe.c @@ -734,7 +734,7 @@ int __dvb_fe_get_parms(struct dvb_v5_fe_parms *p) int i, n = 0; const unsigned int *sys_props; struct dtv_properties prop; - struct dvb_frontend_parameters v3_parms; + struct dvb_frontend_parameters v3_parms = { 0 }; uint32_t bw; sys_props = dvb_v5_delivery_system[parms->p.current_sys]; |