Hi,
I suggest following small patch, as valgrind complains otherwise in combination with softdevice:
--- ringbuffer.c.old 2006-06-15 22:36:33.000000000 +0200 +++ ringbuffer.c 2006-06-15 22:19:11.000000000 +0200 @@ -157,6 +157,7 @@ description = Description ? strdup(Description) : NULL; tail = head = margin = Margin; buffer = NULL; + gotten = 0; if (Size > 1) { // 'Size - 1' must not be 0! if (Margin <= Size / 2) { buffer = MALLOC(uchar, Size);
Cheers,