lightningd/plugin.c: Do not call closedir with NULL DIR*.

Fixes: #2667

Really-by: @darwin
This commit is contained in:
ZmnSCPxj 2019-05-23 12:01:28 +00:00 committed by neil saitug
parent 09761cd4c9
commit 8ecc6c7743

View File

@ -910,8 +910,8 @@ void plugins_add_default_dir(struct plugins *plugins, const char *default_dir)
continue;
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)