tvhlog: improve subsystem parser 2nd, fixes #2552
This commit is contained in:
parent
85a5d7c4d2
commit
948de597c3
1 changed files with 4 additions and 3 deletions
|
@ -102,11 +102,12 @@ tvhlog_set_subsys ( htsmsg_t **c, const char *subsys )
|
|||
while ( t ) {
|
||||
subsys = NULL;
|
||||
a = 1;
|
||||
if (!*t) goto next;
|
||||
if (t[0] == '+' || t[0] == '-' || t[0] <= ' ') {
|
||||
a = t[0] == '+';
|
||||
while (*t && (*t == '+' || *t == '-' || *t <= ' ')) {
|
||||
if (*t > ' ')
|
||||
a = *t == '+';
|
||||
t++;
|
||||
}
|
||||
if (!*t) goto next;
|
||||
if (!strcmp(t, "all")) {
|
||||
if (*c)
|
||||
htsmsg_destroy(*c);
|
||||
|
|
Loading…
Add table
Reference in a new issue