Re: [Modcplusplus-devel] pRequest not check for NULL ?
Brought to you by:
gr84b8,
johnksterling
From: Jonathan W. <co...@co...> - 2005-07-31 11:04:32
|
Jean-Fran?ois Adam wrote: > in file apache_handler.cpp line 12. Is it done intentionaly ? > > #define CALL_REQ_FUNCTION(function_name) \ > int result = DECLINED; \ > ApacheRequestRec *pRequest = new ApacheRequestRec(r); \ > cpp_config_rec *dir_rec = (cpp_config_rec *) \ > pRequest->get_dir_config(&cplusplus_module); \ I assume it's intentional, 'new' should not return NULL. http://parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.6 jon |