opentv: another coverity scan fix

This commit is contained in:
Jaroslav Kysela 2015-03-22 21:24:01 +01:00
parent d8e7bafc3b
commit c308e1705e

View file

@ -706,9 +706,9 @@ static void _opentv_compile_pattern_list ( opentv_pattern_list_t *list, htsmsg_t
TAILQ_INIT(list);
if (!l) return;
HTSMSG_FOREACH(f, l) {
pattern = calloc(1, sizeof(opentv_pattern_t));
s = htsmsg_field_get_str(f);
if (s == NULL) continue;
pattern = calloc(1, sizeof(opentv_pattern_t));
pattern->text = strdup(s);
if (regcomp(&pattern->compiled, pattern->text, REG_EXTENDED)) {
tvhlog(LOG_WARNING, "opentv", "error compiling pattern \"%s\"", pattern->text);