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