allow --rpc-file option to change default value

short onliner as rustyrussel suggested
This commit is contained in:
Saibato 2018-02-02 09:11:09 +01:00 committed by Christian Decker
parent 98372e4c0a
commit 7dcaf27bf5

View File

@ -26,7 +26,7 @@ void configdir_register_opts(const tal_t *ctx,
char **configdir, char **rpc_filename)
{
*configdir = default_configdir(ctx);
*rpc_filename = "lightning-rpc";
*rpc_filename = tal_strdup(ctx, "lightning-rpc");
opt_register_early_arg("--lightning-dir=<dir>", opt_set_talstr, opt_show_charp,
configdir,