On Sun, 22 Mar 2009, Junio C Hamano wrote: > If you allow (last_found == NULL), the loop iterates over packed_git list, > and when it has its last element in p after discovering nothing matches > the criteria, this happens: > > if (p == last_found) /* false, p is the last element on the list */ > p = packed_git; /* not taken */ > else > p = p->next; /* taken, p == NULL now */ > if (p == last_found) /* true! */ > p = p->next; /* OOPS */ Yeah, you got it. Now I remember. Nicolas -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html