]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite: fix find_module() finding wrong module
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 5 Jun 2012 03:07:38 +0000 (00:07 -0300)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 5 Jun 2012 03:54:39 +0000 (00:54 -0300)
testsuite/init_module.c

index 7141566fc2a825b7c6e7293f2a62ed7104438927..8a963cce23fb253b377fbd7d9b2ed8d6119ee888 100644 (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;
        }