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 Feb 23, 2023
1 parent a35ae37 commit f8e14b1
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 f8e14b1

Please sign in to comment.