Page 1 of 1

Re: [Nagios-devel] uninitialized vars on nerd.c

Posted: Tue Nov 27, 2012 4:31 pm
by Guest
* Ricardo Jose Maraschini ([email protected]) 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?





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