Make GList more robust

g_list_delete_link was silently ignoring a NULL link before
the last change. Make it do so again, since we've found callers
that rely on this.
This commit is contained in:
Matthias Clasen 2013-03-01 19:11:11 -05:00
parent 10630eed30
commit 14768e97f8

View File

@ -425,6 +425,9 @@ static inline GList*
_g_list_remove_link (GList *list,
GList *link)
{
if (link == NULL)
return list;
if (link->prev)
{
if (link->prev->next == link)