mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-05 22:24:25 +01:00
gossipd: fix uninitialized var.
We assert() that it's set by one of the branches (it should be!) but if we don't hit one it's uninitialized, not NULL. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -1897,7 +1897,7 @@ static void connect_failed(struct io_conn *conn, struct reaching *reach)
|
||||
|
||||
static struct io_plan *conn_init(struct io_conn *conn, struct reaching *reach)
|
||||
{
|
||||
struct addrinfo *ai;
|
||||
struct addrinfo *ai = NULL;
|
||||
|
||||
switch (reach->addr.itype) {
|
||||
case ADDR_INTERNAL_SOCKNAME:
|
||||
|
||||
Reference in New Issue
Block a user