mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
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:
parent
10630eed30
commit
14768e97f8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user