From ac83c6f408d3de9b0d13554f71a6a3a1844c9c17 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Fri, 20 Sep 2013 22:33:03 +0100 Subject: [PATCH] linuxdvb: safety check for possible bad config --- src/input/mpegts/linuxdvb/linuxdvb_mux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input/mpegts/linuxdvb/linuxdvb_mux.c b/src/input/mpegts/linuxdvb/linuxdvb_mux.c index 9b575643..1d057a92 100644 --- a/src/input/mpegts/linuxdvb/linuxdvb_mux.c +++ b/src/input/mpegts/linuxdvb/linuxdvb_mux.c @@ -479,7 +479,8 @@ linuxdvb_mux_display_name ( mpegts_mux_t *mm, char *buf, size_t len ) uint32_t freq = lm->lm_tuning.dmc_fe_params.frequency; char pol[2] = { 0 }; if (ln->ln_type == FE_QPSK) { - pol[0] = *(dvb_pol2str(lm->lm_tuning.dmc_fe_polarisation)); + const char *s = dvb_pol2str(lm->lm_tuning.dmc_fe_polarisation); + if (s) pol[0] = *s; freq /= 1000; } else { freq /= 1000;