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:
William Casarin 2019-04-08 13:06:01 -07:00 committed by Christian Decker
parent 8a4ff05a40
commit 3d98ebbd7f

View File

@ -37,7 +37,7 @@ int main(int argc, char *argv[])
struct amount_sat sat;
bool verbose = false;
char *infile = NULL, *outfile = NULL, *scidfile = NULL, *csat = NULL;
int infd, outfd;
int infd = 0, outfd;
FILE * scidfd;
struct scidsat * scids = NULL;
unsigned max = -1U;