* Fix uninitialised variable in the filter handler.

This commit is contained in:
Sam Hocevar 2006-11-04 17:43:13 +00:00 committed by sam
parent b337442c2c
commit 3bde5b8d8d

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'))
{