diff options
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 *)); |