trivial: fix typo causing an infinite loop
diff --git a/libkmod/libkmod.c b/libkmod/libkmod.c
index a949809..7e14239 100644
--- a/libkmod/libkmod.c
+++ b/libkmod/libkmod.c
@@ -399,7 +399,7 @@
 		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);