Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
capmt: initialize ca variable properly in capmt_pid_flush_adapter()
  • Loading branch information
perexg committed Nov 11, 2015
1 parent 4dd5f71 commit 39b1e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/descrambler/capmt.c
Expand Up @@ -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) */
Expand All @@ -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++) {
Expand Down

0 comments on commit 39b1e51

Please sign in to comment.