From 0554302f7755e1e3776555b1a3bfce0c20d72f77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20T=C3=B6rnblom?= Date: Fri, 10 Jan 2014 13:49:34 +0100 Subject: [PATCH] iptv: fixed crash when iptv url is null --- src/input/mpegts/iptv/iptv_mux.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/input/mpegts/iptv/iptv_mux.c b/src/input/mpegts/iptv/iptv_mux.c index 5c7a603a..c8d99858 100644 --- a/src/input/mpegts/iptv/iptv_mux.c +++ b/src/input/mpegts/iptv/iptv_mux.c @@ -77,7 +77,10 @@ static void iptv_mux_display_name ( mpegts_mux_t *mm, char *buf, size_t len ) { iptv_mux_t *im = (iptv_mux_t*)mm; - strncpy(buf, im->mm_iptv_url, len); + if(im->mm_iptv_url) + strncpy(buf, im->mm_iptv_url, len); + else + *buf = 0; } /*