]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
trivial: fix typo causing an infinite loop
authorUlisses Furquim <ulisses@profusion.mobi>
Thu, 15 Dec 2011 21:17:49 +0000 (19:17 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 15 Dec 2011 21:36:12 +0000 (21:36 +0000)
libkmod/libkmod.c

index a94980973578384cbbe5b9e329a49586699f1383..7e14239dd543fded2d2d4e44373724590cdba4b4 100644 (file)
@@ -399,7 +399,7 @@ static int kmod_lookup_alias_from_alias_bin(struct kmod_ctx *ctx,
                index_file_close(idx);
        }
 
-       for (realname = realnames; realname; realname = realnames->next) {
+       for (realname = realnames; realname; realname = realname->next) {
                struct kmod_module *mod;
 
                err = kmod_module_new_from_alias(ctx, name, realname->value, &mod);