(__gconv_find_shlib): Correct use of tfind return value.
authordrepper <drepper>
Mon, 13 Jul 1998 12:12:20 +0000 (12:12 +0000)
committerdrepper <drepper>
Mon, 13 Jul 1998 12:12:20 +0000 (12:12 +0000)
elf/dl-close.c

index 8b352d0..e1ca142 100644 (file)
@@ -62,7 +62,9 @@ _dl_close (struct link_map *map)
     {
       struct link_map *imap = list[i];
       if (imap->l_opencount == 1 && imap->l_type == lt_loaded
-         && imap->l_info[DT_FINI])
+         && imap->l_info[DT_FINI]
+         /* Skip any half-cooked objects that were never initialized.  */
+         && imap->l_init_called)
        {
          /* When debugging print a message first.  */
          if (_dl_debug_impcalls)