From b2846e4b3de51135aa7511171e9298684c4f51f3 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Tue, 18 Jul 2023 12:09:09 +0100 Subject: Don't close a non-opened file --- tr8vm.c | 1 - 1 file changed, 1 deletion(-) (limited to 'tr8vm.c') 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; } -- cgit v1.2.3