mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
lightningd/plugin.c: Do not call closedir
with NULL DIR*.
Fixes: #2667 Really-by: @darwin
This commit is contained in:
parent
09761cd4c9
commit
8ecc6c7743
@ -910,8 +910,8 @@ void plugins_add_default_dir(struct plugins *plugins, const char *default_dir)
|
|||||||
continue;
|
continue;
|
||||||
add_plugin_dir(plugins, path_join(tmpctx, default_dir, di->d_name), true);
|
add_plugin_dir(plugins, path_join(tmpctx, default_dir, di->d_name), true);
|
||||||
}
|
}
|
||||||
|
closedir(d);
|
||||||
}
|
}
|
||||||
closedir(d);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void plugins_init(struct plugins *plugins, const char *dev_plugin_debug)
|
void plugins_init(struct plugins *plugins, const char *dev_plugin_debug)
|
||||||
|
Loading…
Reference in New Issue
Block a user