aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-11-26 16:57:22 -0500
committerB. Watson <urchlay@slackware.uk>2025-11-26 16:57:22 -0500
commitdb64ce4dbbd6c1cf273ce1e557158301ff4a9228 (patch)
tree4bebe23f3766574f69bb5665a8db9fedb1eda356
parent9607bc1d453aa4f642c0f0e86508cf27a0a5eb67 (diff)
downloadunalf-db64ce4dbbd6c1cf273ce1e557158301ff4a9228.tar.gz
Don't close output file unless it was opened.
-rw-r--r--src/alf.c2
1 files changed, 1 insertions, 1 deletions
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);
}