From f0e4ec0e104775ce105d9e0607e9193668babdce Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 3 Oct 2014 15:21:47 +0200 Subject: [PATCH] config: coverify - fix possible NULL dereference --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 7806a755..b3507019 100644 --- a/src/config.c +++ b/src/config.c @@ -787,7 +787,7 @@ config_modify_dvr_log( htsmsg_t *c, uint32_t id, const char *uuid, const void *a htsmsg_delete_field(c, "autorec"); HTSMSG_FOREACH(f, list) { if (!(e = htsmsg_field_get_map(f))) continue; - if (strcmp(s1, htsmsg_get_str(e, "id")) == 0) { + if (strcmp(s1, htsmsg_get_str(e, "id") ?: "") == 0) { htsmsg_add_str(c, "autorec", htsmsg_get_str(e, "uuid")); break; }