diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-08-22 17:55:23 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-08-22 17:55:23 +0000 |
commit | 46b05e5d746be53b4102012365a38c50b8719e98 (patch) | |
tree | 0d10009ac4187314c91154e44e8ff0b9da9ccfa3 /malloc | |
parent | 2e3e5db6680de463d6e8b43ec8bc5e131a99a700 (diff) | |
download | glibc-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')
-rw-r--r-- | malloc/mtrace.c | 2 |
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 *)); |