From: Jaroslav Kysela Date: Wed, 11 Nov 2015 17:43:49 +0000 (+0100) Subject: capmt: initialize ca variable properly in capmt_pid_flush_adapter() X-Git-Tag: v4.2.1~1574 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=39b1e510328830c0814a9bbac750469a27ae112b;p=thirdparty%2Ftvheadend.git capmt: initialize ca variable properly in capmt_pid_flush_adapter() --- diff --git a/src/descrambler/capmt.c b/src/descrambler/capmt.c index 5f7c63a17..5b503469b 100644 --- a/src/descrambler/capmt.c +++ b/src/descrambler/capmt.c @@ -422,6 +422,7 @@ capmt_pid_flush_adapter(capmt_t *capmt, int adapter) capmt_opaque_t *o; int pid, i; + ca = &capmt->capmt_adapters[adapter]; tuner = capmt->capmt_adapters[adapter].ca_tuner; if (tuner == NULL) { /* clean all pids (to be sure) */ @@ -432,7 +433,6 @@ capmt_pid_flush_adapter(capmt_t *capmt, int adapter) } return; } - ca = &capmt->capmt_adapters[adapter]; mmi = LIST_FIRST(&tuner->mi_mux_active); mux = mmi ? mmi->mmi_mux : NULL; for (i = 0; i < MAX_PIDS; i++) {