From 5b6c1569a4e8835f1e3225b90c8c19203a99bc6b Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Tue, 7 Apr 2020 11:36:44 +0200 Subject: [PATCH] Make failure to open file a fatal error --- src/asm/fstack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/asm/fstack.c b/src/asm/fstack.c index bdd917ee..67e68dc6 100644 --- a/src/asm/fstack.c +++ b/src/asm/fstack.c @@ -544,8 +544,8 @@ void fstk_Init(char *pFileName) } else { pCurrentFile = fopen(pFileName, "rb"); if (pCurrentFile == NULL) - yyerror("Unable to open file '%s': %s", pFileName, - strerror(errno)); + fatalerror("Unable to open file '%s': %s", pFileName, + strerror(errno)); } nFileStackDepth = 0;