Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
config: coverify - fix possible NULL dereference
  • Loading branch information
perexg committed Oct 3, 2014
1 parent fb30be0 commit f0e4ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit f0e4ec0

Please sign in to comment.