summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi/glapi_getproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapi/glapi/glapi_getproc.c')
-rw-r--r--src/mapi/glapi/glapi_getproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/glapi/glapi_getproc.c b/src/mapi/glapi/glapi_getproc.c
index 0a6ff7795fb..f976d580809 100644
--- a/src/mapi/glapi/glapi_getproc.c
+++ b/src/mapi/glapi/glapi_getproc.c
@@ -244,7 +244,7 @@ static char *
str_dup(const char *str)
{
char *copy;
- copy = (char*) malloc(strlen(str) + 1);
+ copy = malloc(strlen(str) + 1);
if (!copy)
return NULL;
strcpy(copy, str);