Do not use potentially uninitialized value needed_dns

This commit is contained in:
practicalswift 2018-05-15 12:19:59 +02:00 committed by Christian Decker
parent 4359f46ffd
commit ba20ace064

View file

@ -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 */