Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <ElementsProject#2674 (comment)> Signed-off-by: William Casarin <[email protected]>
- Loading branch information