Page 1 of 1

[Nagios-devel] On demand macros with empty host name not working

Posted: Mon Feb 04, 2008 1:57 am
by Guest

Hi list,

when testing around with nagios 3.0 I recognized that support for empty
host names in on demand macros was broken somewhere between b6 and b7.

The problem is located in common/macros.c line 842:
/* if first arg is blank, it means use the current host name */
if(arg1==NULL){

But arg1 isn't a null pointer in this case. Changing the line to
if(*arg1=='\x0'){

brings back expected behaviour.
It'd be great to see this fixed in next rc/stable

Matthias






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]