aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-18 12:09:09 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-18 12:09:09 +0100
commitb2846e4b3de51135aa7511171e9298684c4f51f3 (patch)
treeca7b693336a5b99bfc6d8f4dbc6a56f98c7a88b9
parent29ae4c6388a7f86e67717e9ded43aa348596edd8 (diff)
downloadtr8vm-b2846e4b3de51135aa7511171e9298684c4f51f3.tar.gz
tr8vm-b2846e4b3de51135aa7511171e9298684c4f51f3.zip
Don't close a non-opened fileHEADmain
-rw-r--r--tr8vm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tr8vm.c b/tr8vm.c
index 37c82f9..1a5d667 100644
--- a/tr8vm.c
+++ b/tr8vm.c
@@ -266,7 +266,6 @@ int main(int argc, char *argv[])
fd = fopen(argv[1], "rb");
if (!fd)
{
- fclose(fd);
fprintf(stderr, "Error opening input\n");
return 1;
}