projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10630ee
)
Make GList more robust
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 2 Mar 2013 00:11:11 +0000
(19:11 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 2 Mar 2013 00:11:11 +0000
(19:11 -0500)
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.
glib/glist.c
patch
|
blob
|
history
diff --git
a/glib/glist.c
b/glib/glist.c
index
620b58d
..
073bcaa
100644
(file)
--- a/
glib/glist.c
+++ b/
glib/glist.c
@@
-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)