Skip to content

Commit

Permalink
fix(dracut-install): declaration hides variable #12
Browse files Browse the repository at this point in the history
  • Loading branch information
LaszloGombos committed Mar 2, 2023
1 parent cd62420 commit b9145d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/install/dracut-install.c
Original file line number Diff line number Diff line change
Expand Up @@ -2125,13 +2125,13 @@ int main(int argc, char **argv)

modules_loaded = hashmap_new(string_hash_func, string_compare_func);
if (arg_modalias) {
Iterator i;
Iterator it;
char *name;
_cleanup_kmod_unref_ struct kmod_ctx *ctx = NULL;
ctx = kmod_new(kerneldir, NULL);

modalias_list(ctx);
HASHMAP_FOREACH(name, modules_loaded, i) {
HASHMAP_FOREACH(name, modules_loaded, it) {
printf("%s\n", name);
}
exit(0);
Expand Down

0 comments on commit b9145d8

Please sign in to comment.