From 54bb356dc8ef80da2d5d3acbc272a30b99021328 Mon Sep 17 00:00:00 2001 From: Andi Jahja Date: Mon, 31 Jul 2000 23:48:23 +0000 Subject: [PATCH] Bug Fixes On Line Commands --- harbour/ChangeLog | 4 ++++ harbour/source/compiler/hbgenerr.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 24d3ed5ccc..c892883b57 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,7 @@ +2000-08-01 06:30 UTC+0700 Jose Lalin + * source/compiler/hbgenerr.c + Bug fixes as reported by Andi Jahja + 2000-07-31 09:00 UTC+0800 Ron Pinkas * source/compiler/simplex.c * source/macro/macro.slx diff --git a/harbour/source/compiler/hbgenerr.c b/harbour/source/compiler/hbgenerr.c index 61189d3e43..27c78b857c 100644 --- a/harbour/source/compiler/hbgenerr.c +++ b/harbour/source/compiler/hbgenerr.c @@ -129,7 +129,8 @@ void hb_compGenError( char * szErrors[], char cPrefix, int iError, char * szErro if( cPrefix != 'F' && hb_comp_bError ) return; - printf( "\r%s(%i) ", hb_comp_files.pLast->szFileName, iLine ); + if( hb_comp_files.pLast && hb_comp_files.pLast->szFileName ) + printf( "\r%s(%i) ", hb_comp_files.pLast->szFileName, iLine ); printf( "Error %c%04i ", cPrefix, iError ); printf( szErrors[ iError - 1 ], szError1, szError2 );