uninitialized vars on nerd.c

Ricardo Jose Maraschini ricardo.maraschini at opservices.com.br
Tue Nov 27 17:27:06 CET 2012


* Ricardo Jose Maraschini (ricardo.maraschini at opservices.com.br) wrote:
> fix warnings regarding uninitialized vars on nerd.c
> 
> Index: base/nerd.c
> ===================================================================
> --- base/nerd.c	(revision 2472)
> +++ base/nerd.c	(working copy)
> @@ -298,9 +298,9 @@
>  static int chan_opath_checks(int cb, void *data)
>  {
>  	const int red = 0xff0000, green = 0xff00, blue = 0xff, pale = 0x555555;
> -	unsigned int color;
> -	check_result *cr;
> -	host *h;
> +	unsigned int color = 0x0;
> +	check_result *cr = NULL;
> +	host *h = NULL;
>  	const char *name = "_HOST_";
>  	char *buf = NULL;

any answer on this one?

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov




More information about the Developers mailing list