From 4976aeb22f19ed0effd87bcbe5f34dafe5107c43 Mon Sep 17 00:00:00 2001 From: SirTalksalot75 <132705706+SirTalksalot75@users.noreply.github.com> Date: Mon, 22 Apr 2024 12:57:49 +0200 Subject: [PATCH] Update main.c fixed typo --- src/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index a24eb7a..f5d242a 100644 --- a/src/main.c +++ b/src/main.c @@ -40,16 +40,15 @@ int main(void) { FILE* input = fopen("program.gem", "r"); - if (NULL == Input) + if (NULL == input) { ERROR("File couldn't be opened!"); - atexit(); } yyin = input; yyparse(); - atexit(); + atexit(input); return 0; }