PATCH: Error handling for dlopen
H . J . Lu
hjl@lucon.org
Wed May 29 17:27:00 GMT 2002
Why do we check args.map->l_searchlist.r_list[0] instead of args.map
here?
H.J.
----
2002-05-29 H.J. Lu <hjl@gnu.org>
* elf/dl-open.c (_dl_open): Check args.map->l_opencount
instead of args.map->l_searchlist.r_list[0]->l_opencount
for error.
--- elf/dl-open.c.close Wed May 29 12:21:14 2002
+++ elf/dl-open.c Wed May 29 16:44:20 2002
@@ -503,7 +503,7 @@ _dl_open (const char *file, int mode, co
/* Increment open counters for all objects since this
sometimes has not happened yet. */
- if (args.map->l_searchlist.r_list[0]->l_opencount == 0)
+ if (args.map->l_opencount == 0)
for (i = 0; i < args.map->l_searchlist.r_nlist; ++i)
++args.map->l_searchlist.r_list[i]->l_opencount;
More information about the Libc-alpha
mailing list