mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
2001-08-22 Ulrich Drepper <drepper@redhat.com> * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname. * malloc/mtrace.c (tr_where): dli_sname always points to a non-empty string is != NULL. Reported by Tim Janik <timj@gtk.org>.
This commit is contained in:
@ -97,7 +97,7 @@ tr_where (caller)
|
||||
if (_dl_addr (caller, &info))
|
||||
{
|
||||
char *buf = (char *) "";
|
||||
if (info.dli_sname && info.dli_sname[0])
|
||||
if (info.dli_sname != NULL)
|
||||
{
|
||||
size_t len = strlen (info.dli_sname);
|
||||
buf = alloca (len + 6 + 2 * sizeof (void *));
|
||||
|
Reference in New Issue
Block a user