GList: be more robust
authorMatthias Clasen <mclasen@redhat.com>
Sun, 24 Feb 2013 21:54:09 +0000 (22:54 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 24 Feb 2013 21:56:35 +0000 (22:56 +0100)
commit921593b022491ce3dbd61739cc9808a715f25b9f
tree99ec8d7912b10cfb6d857fe3d6a1f7511e8f911f
parent6833267a07cb3251bc1fa89c99cc3fe6c47001e2
GList: be more robust

We can detect list corruption in some cases. The new test case
demonstrates a case where we can warn instead of silently corrupt
the list. This was pointed out by Steve Grubb.

Also, use the same auxiliary routine in all places where we unlink
a list element.
glib/glist.c
glib/tests/list.c