trace-view: Compare list all but last item in list
trace-view: Compare list all but last item in list

The last item is not added to the compare, because the compare
tests each item plus the next. If we compared the last item, it
may compare a invalid pointer.

But the code compares all but the last 2 items! Which means we
may return NULL when we should have found something. Compare that
second to last item.

Signed-off-by: Steven Rostedt <43232e92d70cc7aa53504ad0397085ee47bad87f@goodmis.org>

bigzz/trace-cmd,bigzz/trace-cmd