From 805e00fbab0f75e67207ecdf210d2bad7144fe57 Mon Sep 17 00:00:00 2001 From: Brian Hays Date: Mon, 9 Apr 2001 21:15:26 +0000 Subject: [PATCH] 2001-04-09 02:20 UTC-0800 Brian Hays --- harbour/ChangeLog | 4 ++++ harbour/source/compiler/genc.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index a12921ed12..cf38791461 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,7 @@ +2001-04-09 02:20 UTC-0800 Brian Hays + * source/compiler/genc.c + * Posted a fix from Ron to pDeclared handling + 2001-04-09 12:30 UTC-0800 Brian Hays * contrib/rdd_ads/ads1.c * added scope optimization to DBOI_KEYCOUNT diff --git a/harbour/source/compiler/genc.c b/harbour/source/compiler/genc.c index 93b8b12620..ee7ecebf52 100644 --- a/harbour/source/compiler/genc.c +++ b/harbour/source/compiler/genc.c @@ -282,7 +282,11 @@ void hb_compGenCCode( PHB_FNAME pFileName ) /* generates the C language ou pInline = hb_comp_inlines.pFirst; } - pDeclared = hb_comp_pReleaseDeclared->pNext; + if ( hb_comp_pReleaseDeclared ) + pDeclared = hb_comp_pReleaseDeclared->pNext; + else + pDeclared = NULL; + while( pDeclared ) { hb_comp_pFirstDeclared = pDeclared->pNext;