(tr_where): dli_sname always points to a non-empty string is != NULL.
authordrepper <drepper>
Wed, 22 Aug 2001 17:52:55 +0000 (17:52 +0000)
committerdrepper <drepper>
Wed, 22 Aug 2001 17:52:55 +0000 (17:52 +0000)
malloc/mtrace.c

index 44893f1..1da145e 100644 (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 *));