1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00
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:
Ulrich Drepper
2001-08-22 17:55:23 +00:00
parent 2e3e5db668
commit 46b05e5d74
3 changed files with 16 additions and 6 deletions

View File

@ -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 *));