]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
else is missing
authorhochwasser <hochwasser@users.noreply.github.com>
Mon, 3 May 2021 20:10:46 +0000 (22:10 +0200)
committerFlole998 <Flole998@users.noreply.github.com>
Tue, 4 May 2021 02:37:26 +0000 (04:37 +0200)
While locking into the code, there seems to miss an else statement. The indentation seems so.

src/bouquet.c

index e71de5fc73fd1988694576842fa69be49bb952a6..d39c5e748465daffc995be6a5f6768268a6bd3a3 100644 (file)
@@ -1198,7 +1198,7 @@ parse_enigma2(bouquet_t *bq, char *data)
       if (*data) { *data = '\0'; data++; }
       if (bq->bq_name == NULL || bq->bq_name[0] == '\0')
         bq->bq_name = strdup(p);
-    } if (strncmp(data, "#SERVICE ", 9) == 0) {
+    } else if (strncmp(data, "#SERVICE ", 9) == 0) {
       data += 9, p = data;
 service:
       while (*data && *data != '\r' && *data != '\n') data++;