From: Adam Sutton Date: Tue, 17 Dec 2013 13:11:45 +0000 (+0000) Subject: dvb: add NULL ptr check on save param. Fixes #1873. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F428%2Fhead;p=thirdparty%2Ftvheadend.git dvb: add NULL ptr check on save param. Fixes #1873. --- diff --git a/src/dvb/dvb_service.c b/src/dvb/dvb_service.c index f8f8def6c..a308333a1 100644 --- a/src/dvb/dvb_service.c +++ b/src/dvb/dvb_service.c @@ -426,7 +426,7 @@ dvb_service_find2(th_dvb_mux_instance_t *tdmi, uint16_t sid, int pmt_pid, if (t) { if (pmt_pid && pmt_pid != t->s_pmt_pid) { t->s_pmt_pid = pmt_pid; - *save = 1; + if (save) *save = 1; } return t; }