diff --git a/devtools/create-gossipstore.c b/devtools/create-gossipstore.c index 9fc6f90df..956724f1e 100644 --- a/devtools/create-gossipstore.c +++ b/devtools/create-gossipstore.c @@ -115,6 +115,8 @@ int main(int argc, char *argv[]) if (infd < 0) err(1, "opening %s", infile); } + else + infd = STDIN_FILENO; if (outfile) { outfd = open(outfile, O_WRONLY|O_TRUNC|O_CREAT, 0666);