From: Lucas De Marchi Date: Tue, 5 Jun 2012 03:07:38 +0000 (-0300) Subject: testsuite: fix find_module() finding wrong module X-Git-Tag: v9~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90fc410b328d8d5ecc3b159a5a4529f76f77f790;p=thirdparty%2Fkmod.git testsuite: fix find_module() finding wrong module --- diff --git a/testsuite/init_module.c b/testsuite/init_module.c index 7141566f..8a963cce 100644 --- a/testsuite/init_module.c +++ b/testsuite/init_module.c @@ -107,7 +107,7 @@ static struct mod *find_module(struct mod *_modules, const char *modname) struct mod *mod; for (mod = _modules; mod != NULL; mod = mod->next) { - if (strcmp(mod->name, modname)) + if (strcmp(mod->name, modname) == 0) return mod; }