[Mesa-dev] [PATCH 1/2] st/glx: use strdup() instead of _mesa_strdup()

Brian Paul brianp at vmware.com
Tue Mar 10 18:42:39 PDT 2015


---
 src/gallium/state_trackers/glx/xlib/glx_api.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_trackers/glx/xlib/glx_api.c
index d1bd760..f9572b7 100644
--- a/src/gallium/state_trackers/glx/xlib/glx_api.c
+++ b/src/gallium/state_trackers/glx/xlib/glx_api.c
@@ -34,6 +34,7 @@
 #include "GL/glx.h"
 
 #include <stdio.h>
+#include <string.h>
 #include <X11/Xmd.h>
 #include <GL/glxproto.h>
 
@@ -644,7 +645,7 @@ register_with_display(Display *dpy)
       ext = dpy->ext_procs;  /* new extension is at head of list */
       assert(c->extension == ext->codes.extension);
       (void) c;
-      ext->name = _mesa_strdup(extName);
+      ext->name = strdup(extName);
       ext->close_display = close_display_callback;
    }
 }
-- 
1.9.1



More information about the mesa-dev mailing list