patch: small segfault fixes

Matthew Kent mkent at magoazul.com
Sat Sep 11 22:30:42 CEST 2004


On Sat, 2004-09-11 at 17:03, Andreas Ericsson wrote:
> Matthew Kent wrote:
> > Couple tiny fixes for latest copy in cvs. Fixes a segfault I was getting
> > for not having host_perfdata_file/service_perfata_file defined in my
> > nagios.cfg
> > 
> 
> Won't this cause segfault when the macro is actually substituted, seeing 
> as it will be set to either an invalid address or a NULL pointer?
> 

Should have mentioned that I tested this and it was okay. Looking at the
relevant code I can see that if the macro is referenced without being
defined its simply ignored (base/utils.c:655).

- Matthew



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php




More information about the Developers mailing list