From: Ulrich Drepper Date: Sat, 2 Mar 2002 00:50:05 +0000 (+0000) Subject: Fix one more leftover from the GL thing. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c6b6c8402949fb1854d44d0ffc502164e31e3a1;p=thirdparty%2Fglibc.git Fix one more leftover from the GL thing. --- diff --git a/elf/dl-load.c b/elf/dl-load.c index dd1b50fa9a0..759dce4c19d 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -1186,7 +1186,7 @@ _dl_map_object_from_fd (const char *name, int fd, struct filebuf *fbp, /* When we profile the SONAME might be needed for something else but loading. Add it right away. */ - if (__builtin_expect (_dl_profile) != NULL, 0) + if (__builtin_expect (_dl_profile != NULL, 0) && l->l_info[DT_SONAME] != NULL) add_name_to_object (l, ((const char *) D_PTR (l, l_info[DT_STRTAB]) + l->l_info[DT_SONAME]->d_un.d_val));