core-lightning/devtools
William Casarin 6f635b46fd gossipstore: fix uninitialized input fd
Initialize infd to STDIN_FILENO if the input file argument is missing.

Caught with gcc version: 7.4.0

devtools/create-gossipstore.c: In function ‘main’:
devtools/create-gossipstore.c:130:9: error: ‘infd’ may be used
uninitialized in this function [-Werror=maybe-uninitialized]
  while (read_all(infd, &be_inlen, sizeof(be_inlen))) {

Suggested-by: @ZmnSCPxj <https://github.com/ElementsProject/lightning/pull/2674#issuecomment-495617253>
Signed-off-by: William Casarin <jb55@jb55.com>
2019-06-03 00:07:11 +00:00
..
.gitignore gossipwith: simple tool to snarf gossip from a node. 2018-09-21 17:56:15 +02:00
bolt11-cli.c wallet: Pass chainparams to address serialization 2019-05-10 23:07:49 +00:00
create-gossipstore.c gossipstore: fix uninitialized input fd 2019-06-03 00:07:11 +00:00
decode-iolog devtools/decode-iolog: tool to decode hexstrings from io logging. 2019-05-31 18:36:38 +02:00
decodemsg.c tlvs: add methods for decodemsg utility 2019-04-08 00:37:29 +00:00
dump-gossipstore.c common: move gossip_store read routine where subdaemons can access it. 2019-05-13 05:16:18 +00:00
gossipwith.c libwally: update to 0.6.8. 2019-04-13 18:55:15 +02:00
Makefile devtools/create-gossipstore: cleanups 2019-04-24 13:46:39 -05:00
onion.c Makefile: check for direct amount_sat/amount_msat access. 2019-02-21 08:01:37 +00:00
print_wire.c common/node_id: new type. 2019-04-09 12:37:16 -07:00
print_wire.h common/node_id: new type. 2019-04-09 12:37:16 -07:00