From 542621d10400d5286030a9c721ce01e30173ade8 Mon Sep 17 00:00:00 2001 From: Jiri Malak Date: Wed, 5 Jun 2024 09:25:37 +0200 Subject: [PATCH] as: simple implementation of fr option handling missed changed file --- bld/as/c/main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bld/as/c/main.c b/bld/as/c/main.c index 9ea775d2fc..a27ad4f225 100644 --- a/bld/as/c/main.c +++ b/bld/as/c/main.c @@ -56,7 +56,8 @@ int PP_MBCharLen( const char *p ) int main( int argc, char **argv ) //******************************* { - static char *fname; + char *fname; + char *err_file; OPT_STORAGE data; OPT_STRING *files; OPT_STRING *src; @@ -96,7 +97,11 @@ int main( int argc, char **argv ) SymInit(); InsInit(); DirInit(); - if( ObjInit( fname ) ) { + err_file = NULL; + if( data.fr_value != NULL ) { + err_file = data.fr_value->data; + } + if( ObjInit( fname, err_file ) ) { if( setjmp( AsmParse ) == 0 ) { ErrorCountsReset(); DoReport = true;