]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
api: epg - coverity fix
authorJaroslav Kysela <perex@perex.cz>
Fri, 3 Oct 2014 19:48:58 +0000 (21:48 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 3 Oct 2014 19:48:58 +0000 (21:48 +0200)
src/api/api_epg.c

index 6d8d05a1e0da289d6421a6160ec3d4c68a08f10e..fd47017f573cd35bde166b2539404c731dd36d39 100644 (file)
@@ -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))