[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] Todays snapshot - bbgen crashes



On Fri, Aug 10, 2007 at 11:18:35AM -0700, Charles Jones wrote:
> I know that snapshots are not considered stable, but I just wanted to 
> report that I grabbed todays snapshot (dated Aug 10 00:05), and noticed 
> that bbgen is crashing. 

Others have reported the same - this should fix it, I think.

(In case anyone wonders why I've been so quiet on the list lately, it is
because I'm having my summer holidays right now - so the family needs
some attention :-) Also I've been lucky - we've had nothing but rain for
the past 7 weeks, but now we're finally getting some nice summer
weather).


Regards,
Henrik

--- lib/eventlog.c	2007/07/27 13:23:51	1.45
+++ lib/eventlog.c	2007/08/11 05:46:39
@@ -757,7 +757,7 @@
 				lasttoshow = ewalk;
 				ewalk = ewalk->next;
 			} while (ewalk && (count<maxcount));
-			ewalk->next = NULL;	/* Terminate list */
+			if (ewalk) ewalk->next = NULL;	/* Terminate list if any items left */
 
 			if (maxminutes > 0)  { 
 				sprintf(title, "%d events received in the past %u minutes",