Browse Source

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

Fixes: #2667

Really-by: @darwin
htlc_accepted_hook
ZmnSCPxj 6 years ago
committed by neil saitug
parent
commit
8ecc6c7743
  1. 2
      lightningd/plugin.c

2
lightningd/plugin.c

@ -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)

Loading…
Cancel
Save