testsuite: fix find_module() finding wrong module

This commit is contained in:
Lucas De Marchi 2012-06-05 00:07:38 -03:00
parent 9e2eadb1d7
commit 90fc410b32

View File

@ -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;
}