Files
lightning/common
Rusty Russell f554d6376f wireaddr: handle case where non-IPv6 and non-IPv4 address is returned.
Thanks clang!  Here's the error:
ommon/wireaddr.c:359:14: error: variable 'addr' is used uninitialized whenever

      'if' condition is false [-Werror,-Wsometimes-uninitialized]
                } else if (addrinfo->ai_family == AF_INET6) {
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
common/wireaddr.c:364:25: note: uninitialized use occurs here
                tal_arr_expand(addrs, addr);
                                      ^~~~
./common/utils.h:27:16: note: expanded from macro 'tal_arr_expand'
                (*(p))[n] = (s);                                        \
                             ^
common/wireaddr.c:359:10: note: remove the 'if' if its condition is always true
                } else if (addrinfo->ai_family == AF_INET6) {
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
common/wireaddr.c:354:3: note: variable 'addr' is declared here
                struct wireaddr addr;
                ^

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-09-12 01:30:47 +00:00
..
2018-11-02 05:58:01 +00:00
2018-02-08 22:49:34 +01:00
2019-07-28 06:09:56 +00:00
2019-07-28 06:09:56 +00:00
2019-04-09 12:37:16 -07:00
2019-04-09 12:37:16 -07:00
2019-04-16 21:22:13 +00:00
2019-04-16 21:22:13 +00:00
2019-04-09 12:37:16 -07:00
2018-12-05 23:15:59 +00:00
2018-06-18 12:31:09 +02:00