mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
build: fix maybe-uninitialized error on some gcc versions
on gcc (GCC) 7.4.0 devtools/create-gossipstore.c: In function ‘main’: devtools/create-gossipstore.c:107:9: error: ‘infd’ may be used uninitialized .. while (read_all(infd, &be_inlen, sizeof(be_inlen))) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
parent
8a4ff05a40
commit
3d98ebbd7f
@ -37,7 +37,7 @@ int main(int argc, char *argv[])
|
|||||||
struct amount_sat sat;
|
struct amount_sat sat;
|
||||||
bool verbose = false;
|
bool verbose = false;
|
||||||
char *infile = NULL, *outfile = NULL, *scidfile = NULL, *csat = NULL;
|
char *infile = NULL, *outfile = NULL, *scidfile = NULL, *csat = NULL;
|
||||||
int infd, outfd;
|
int infd = 0, outfd;
|
||||||
FILE * scidfd;
|
FILE * scidfd;
|
||||||
struct scidsat * scids = NULL;
|
struct scidsat * scids = NULL;
|
||||||
unsigned max = -1U;
|
unsigned max = -1U;
|
||||||
|
Loading…
Reference in New Issue
Block a user