aboutsummaryrefslogtreecommitdiff
path: root/malloc/mtrace.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-08-22 17:55:23 +0000
committerUlrich Drepper <drepper@redhat.com>2001-08-22 17:55:23 +0000
commit46b05e5d746be53b4102012365a38c50b8719e98 (patch)
tree0d10009ac4187314c91154e44e8ff0b9da9ccfa3 /malloc/mtrace.c
parent2e3e5db6680de463d6e8b43ec8bc5e131a99a700 (diff)
downloadglibc-46b05e5d746be53b4102012365a38c50b8719e98.zip
glibc-46b05e5d746be53b4102012365a38c50b8719e98.tar.gz
glibc-46b05e5d746be53b4102012365a38c50b8719e98.tar.bz2
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>.
Diffstat (limited to 'malloc/mtrace.c')
-rw-r--r--malloc/mtrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc/mtrace.c b/malloc/mtrace.c
index 44893f1..1da145e 100644
--- a/malloc/mtrace.c
+++ b/malloc/mtrace.c
@@ -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 *));