summaryrefslogtreecommitdiffstats
path: root/src/glx/glxconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/glxconfig.c')
-rw-r--r--src/glx/glxconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/glxconfig.c b/src/glx/glxconfig.c
index c3e1d5a5680..e5718b143fc 100644
--- a/src/glx/glxconfig.c
+++ b/src/glx/glxconfig.c
@@ -230,7 +230,7 @@ glx_config_create_list(unsigned count)
next = &base;
for (i = 0; i < count; i++) {
- *next = (struct glx_config *) malloc(size);
+ *next = malloc(size);
if (*next == NULL) {
glx_config_destroy_list(base);
base = NULL;