Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
api: epg - coverity fix
  • Loading branch information
perexg committed Oct 3, 2014
1 parent b36f88c commit e6badc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/api_epg.c
Expand Up @@ -382,15 +382,15 @@ api_epg_grid
} else if (!strcmp(t, "numeric")) {
f2 = htsmsg_field_find(e, "value");
if (f2) {
int64_t v1, v2 = 0;
int64_t v1 = 0, v2 = 0;
if (f2->hmf_type == HMF_STR) {
const char *z = htsmsg_field_get_str(f2);
if (z) {
const char *z2 = strchr(z, ';');
if (z2)
v2 = strtoll(z2 + 1, NULL, 0);
v1 = strtoll(z, NULL, 0);
}
v1 = strtoll(z, NULL, 0);
api_epg_filter_add_num(&eq, k, v1, v2, comp);
} else {
if (!htsmsg_field_get_s64(f2, &v1))
Expand Down

0 comments on commit e6badc8

Please sign in to comment.