Skip to content

Commit

Permalink
Do not use potentially uninitialized value needed_dns
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift authored and cdecker committed May 15, 2018
1 parent 4359f46 commit ba20ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightningd/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ static char *opt_set_offline(struct lightningd *ld)

static char *opt_add_proxy_addr(const char *arg, struct lightningd *ld)
{
bool needed_dns;
bool needed_dns = false;
tal_free(ld->proxyaddr);

/* We use a tal_arr here, so we can marshal it to gossipd */
Expand Down

0 comments on commit ba20ace

Please sign in to comment.