Browse Source

* Fix uninitialised variable in the filter handler.

pull/1/head
Sam Hocevar sam 18 years ago
parent
commit
3bde5b8d8d
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/filter.c

+ 3
- 2
src/filter.c View File

@@ -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…
Cancel
Save