projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't cast the return value of malloc/realloc
[mesa.git]
/
src
/
glx
/
indirect_glx.c
diff --git
a/src/glx/indirect_glx.c
b/src/glx/indirect_glx.c
index 4f23fed3b080c1bb24fa167117d210fdb379fb5e..53d5a914db74e47afae230a4643a4122649a93e4 100644
(file)
--- a/
src/glx/indirect_glx.c
+++ b/
src/glx/indirect_glx.c
@@
-384,7
+384,7
@@
indirect_create_context(struct glx_screen *psc,
*/
bufSize = (XMaxRequestSize(psc->dpy) * 4) - sz_xGLXRenderReq;
- gc->buf =
(GLubyte *)
malloc(bufSize);
+ gc->buf = malloc(bufSize);
if (!gc->buf) {
free(gc->client_state_private);
free(gc);