From e53da894f510e48c05939a4b27c0f33d21bdd21f Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 20 Feb 2001 18:51:55 +0000 Subject: [PATCH] fixed use of nill object bug --- src/ca/cac_IL.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ca/cac_IL.h b/src/ca/cac_IL.h index 182319f16..32101e32d 100644 --- a/src/ca/cac_IL.h +++ b/src/ca/cac_IL.h @@ -23,7 +23,12 @@ inline int cac::vPrintf ( const char *pformat, va_list args ) { - return ( *this->pVPrintfFunc ) ( pformat, args ); + if ( this ) { + return ( *this->pVPrintfFunc ) ( pformat, args ); + } + else { + return vfprintf ( stderr, pformat, args ); + } } inline const char * cac::userNamePointer () const