projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50e7960
)
(lose): Remove some unnecessary code. The new object is always the last in the list.
author
Ulrich Drepper
<drepper@redhat.com>
Fri, 9 Nov 2001 20:16:10 +0000
(20:16 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Fri, 9 Nov 2001 20:16:10 +0000
(20:16 +0000)
elf/dl-load.c
patch
|
blob
|
history
diff --git
a/elf/dl-load.c
b/elf/dl-load.c
index
337517b
..
a17f25a
100644
(file)
--- a/
elf/dl-load.c
+++ b/
elf/dl-load.c
@@
-755,10
+755,14
@@
lose (int code, int fd, const char *name, char *realname, struct link_map *l,
if (l != NULL)
{
/* Remove the stillborn object from the list and free it. */
- if (l->l_prev)
- l->l_prev->l_next = l->l_next;
- if (l->l_next)
- l->l_next->l_prev = l->l_prev;
+ assert (l->l_next == NULL);
+#ifndef SHARED
+ if (l->l_prev == NULL)
+ /* No other module loaded. */
+ _dl_loaded = NULL;
+ else
+#endif
+ l->l_prev->l_next = NULL;
--_dl_nloaded;
free (l);
}