Mesa (master): mesa: use util_strdup() macro in u_debug_symbol.c

Brian Paul brianp at kemper.freedesktop.org
Mon Oct 23 21:13:24 UTC 2017


Module: Mesa
Branch: master
Commit: 5134c0dedf455a8a8311c2c43db49ac07b3fe0ce
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5134c0dedf455a8a8311c2c43db49ac07b3fe0ce

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Oct 17 13:59:03 2017 -0600

mesa: use util_strdup() macro in u_debug_symbol.c

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

---

 src/gallium/auxiliary/util/u_debug_symbol.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/util/u_debug_symbol.c b/src/gallium/auxiliary/util/u_debug_symbol.c
index 4b55523864..8476043048 100644
--- a/src/gallium/auxiliary/util/u_debug_symbol.c
+++ b/src/gallium/auxiliary/util/u_debug_symbol.c
@@ -309,7 +309,7 @@ debug_symbol_name_cached(const void *addr)
    {
       char buf[1024];
       debug_symbol_name(addr, buf, sizeof(buf));
-      name = strdup(buf);
+      name = util_strdup(buf);
 
       util_hash_table_set(symbols_hash, (void*)addr, (void*)name);
    }




More information about the mesa-commit mailing list