From db64ce4dbbd6c1cf273ce1e557158301ff4a9228 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 26 Nov 2025 16:57:22 -0500 Subject: Don't close output file unless it was opened. --- src/alf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alf.c b/src/alf.c index e47320a..dd9ae00 100644 --- a/src/alf.c +++ b/src/alf.c @@ -355,7 +355,7 @@ int main(int argc, char **argv) { crunch_file(argv[optind++]); } - fclose(out_file); + if(out_file) fclose(out_file); exit(0); } -- cgit v1.2.3