* Fix uninitialised variable in the filter handler.
This commit is contained in:
parent
b337442c2c
commit
3bde5b8d8d
1 changed files with 3 additions and 2 deletions
|
@ -65,9 +65,10 @@ int filter_add(context_t *cx, char const *filter)
|
|||
|
||||
for(i = sizeof(lookup) / sizeof(lookup[0]); i--; )
|
||||
if(!strncmp(filter, lookup[i].name, strlen(lookup[i].name)))
|
||||
{
|
||||
n = strlen(lookup[i].name);
|
||||
break;
|
||||
|
||||
n = strlen(lookup[i].name);
|
||||
}
|
||||
|
||||
if(i == -1 || (filter[n] != ':' && filter[n] != '\0'))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue