Mesa (master): glX_proto_send.py: Don't cast the return value of malloc

Matt Turner mattst88 at kemper.freedesktop.org
Thu Sep 6 05:29:04 UTC 2012


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

Author: Matt Turner <mattst88 at gmail.com>
Date:   Tue Sep  4 22:57:48 2012 -0700

glX_proto_send.py: Don't cast the return value of malloc

---

 src/mapi/glapi/gen/glX_proto_send.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mapi/glapi/gen/glX_proto_send.py b/src/mapi/glapi/gen/glX_proto_send.py
index 24dc500..d42f661 100644
--- a/src/mapi/glapi/gen/glX_proto_send.py
+++ b/src/mapi/glapi/gen/glX_proto_send.py
@@ -970,7 +970,7 @@ struct _glapi_table * __glXNewIndirectAPI( void )
     int o;
 
     entries = _glapi_get_dispatch_table_size();
-    table = (_glapi_proc *) malloc(entries * sizeof(_glapi_proc));
+    table = malloc(entries * sizeof(_glapi_proc));
 
     /* first, set all entries to point to no-op functions */
     for (i = 0; i < entries; i++) {




More information about the mesa-commit mailing list