summaryrefslogtreecommitdiff
path: root/lib/kunit
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kunit')
-rw-r--r--lib/kunit/executor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/kunit/executor.c b/lib/kunit/executor.c
index 483f7b7873a7..5b5bed1efb93 100644
--- a/lib/kunit/executor.c
+++ b/lib/kunit/executor.c
@@ -125,7 +125,8 @@ static struct suite_set kunit_filter_suites(const struct suite_set *suite_set,
char *filter_action,
int *err)
{
- int i, j, k, filter_count;
+ int i, j, k;
+ int filter_count = 0;
struct kunit_suite **copy, *filtered_suite, *new_filtered_suite;
struct suite_set filtered;
struct kunit_glob_filter parsed_glob;