From d7aa0528b879447653f69a6eed372a6bd667aa6a Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 20 Jun 2018 07:06:08 -0700 Subject: [PATCH] gossipd: fix compile error, uninitialized variable Seems to be a problem with gcc 6.4+? Fixes #1527 Signed-off-by: William Casarin --- gossipd/tor_autoservice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gossipd/tor_autoservice.c b/gossipd/tor_autoservice.c index 00a8e52cc..48154534c 100644 --- a/gossipd/tor_autoservice.c +++ b/gossipd/tor_autoservice.c @@ -120,7 +120,7 @@ static void negotiate_auth(struct rbuf *rbuf, const char *tor_password) { char *line; char *cookiefile = NULL; - int cookiefileerrno; + int cookiefileerrno = 0; tor_send_cmd(rbuf, "PROTOCOLINFO 1");