On Wed, Jan 05, 2011 at 04:25:09PM +0000, Eduardo Horvath wrote: > I think you're right. While I'm pretty sure that curpg won't be NULL on > the first iteration, I think it can be NULL on subsequent iterations. I'd > commit that change.
It shouldn't get there on subsequent iterations if it pulled a NULL out of the TAILQ because it explicitily breaks out of the loop in that case. Why do you think it can't happen initially? Martin