diff options
author | Matt Turner <[email protected]> | 2014-09-21 21:24:01 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-12-08 17:02:19 -0800 |
commit | 8af4aaf351313f9d4692697bf28d3c3f84e01ca4 (patch) | |
tree | 3d7fdabf8fc729efef9d011ac583acd0b7ae8e3d /src/mesa/main/objectlabel.c | |
parent | f0a8bcd84e50468a703a0ac366a4e067610df30c (diff) |
Don't cast the return value of malloc/realloc
See commit 2b7a972e for the Coccinelle script.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/objectlabel.c')
-rw-r--r-- | src/mesa/main/objectlabel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/objectlabel.c b/src/mesa/main/objectlabel.c index efa7ba8d19a..78df96b9ba8 100644 --- a/src/mesa/main/objectlabel.c +++ b/src/mesa/main/objectlabel.c @@ -58,7 +58,7 @@ set_label(struct gl_context *ctx, char **labelPtr, const char *label, MAX_LABEL_LENGTH); /* explicit length */ - *labelPtr = (char *) malloc(length+1); + *labelPtr = malloc(length+1); if (*labelPtr) { memcpy(*labelPtr, label, length); /* length is not required to include the null terminator so |