Xymon Mailing List Archive search

New source code and report script

list Henrik Størner
Fri, 9 Feb 2007 10:56:39 +0100
Message-Id: <user-221890e907ab@xymon.invalid>

On Thu, Feb 08, 2007 at 01:30:44PM +0100, Marganne, Etienne wrote:
We finally resolved our problem with the bbgen crash and modified the source
code of Hobbit. Anyone interested can it ask me, I will send with no delay.
OK, based on your modification I found a possible cause for this - it's
always easier to spot problems when you know how they can be fixed :-)

This patch is different from your solution, but should also solve the
problem.


Regards,
Henrik

-------------- next part --------------
--- bbdisplay/loadbbhosts.c	2006/10/03 10:48:09	1.47
+++ bbdisplay/loadbbhosts.c	2007/02/09 09:46:46
@@ -109,7 +109,7 @@
 	}
 
 	xfree(set);
-	return ((strlen(result) > 0) ? result : NULL);
+	return result;	/* This may be an empty string */
 }
 
 bbgen_page_t *init_page(char *name, char *title)