From 3bde5b8d8dc13a9a14cb2593d31f2b9ce980c544 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 4 Nov 2006 17:43:13 +0000 Subject: [PATCH] * Fix uninitialised variable in the filter handler. --- src/filter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/filter.c b/src/filter.c index c5143f3..1b36fd6 100644 --- a/src/filter.c +++ b/src/filter.c @@ -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')) {