From 46b05e5d746be53b4102012365a38c50b8719e98 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 22 Aug 2001 17:55:23 +0000 Subject: Update. 2001-08-22 Ulrich Drepper * 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 . --- malloc/mtrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'malloc/mtrace.c') diff --git a/malloc/mtrace.c b/malloc/mtrace.c index 44893f1398..1da145eb2c 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 *)); -- cgit v1.2.3