From: Jaroslav Kysela Date: Mon, 25 May 2015 06:56:58 +0000 (+0200) Subject: DVR: filename builder, do not crash when title/subtitle is not defined, fixes #2883 X-Git-Tag: v4.2.1~2477 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86dd49de58ce8a9fb20a29619615b418ccd5483e;p=thirdparty%2Ftvheadend.git DVR: filename builder, do not crash when title/subtitle is not defined, fixes #2883 --- diff --git a/src/dvr/dvr_rec.c b/src/dvr/dvr_rec.c index 3789a25f8..c72e63810 100644 --- a/src/dvr/dvr_rec.c +++ b/src/dvr/dvr_rec.c @@ -223,12 +223,12 @@ cleanup_filename(dvr_config_t *cfg, char *s) static const char *dvr_sub_title(const char *id, const void *aux) { - return lang_str_get(((dvr_entry_t *)aux)->de_title, NULL); + return lang_str_get(((dvr_entry_t *)aux)->de_title, NULL) ?: ""; } static const char *dvr_sub_subtitle(const char *id, const void *aux) { - return lang_str_get(((dvr_entry_t *)aux)->de_subtitle, NULL); + return lang_str_get(((dvr_entry_t *)aux)->de_subtitle, NULL) ?: ""; } static const char *dvr_sub_episode(const char *id, const void *aux)