Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tvhlog: improve subsystem parser 2nd, fixes #2552
  • Loading branch information
perexg committed Dec 15, 2014
1 parent 85a5d7c commit 948de59
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tvhlog.c
Expand Up @@ -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);
Expand Down

0 comments on commit 948de59

Please sign in to comment.