diff options
author | Alexander von Gluck IV <[email protected]> | 2017-11-11 22:20:03 -0600 |
---|---|---|
committer | Alexander von Gluck IV <[email protected]> | 2017-11-13 16:45:10 -0600 |
commit | f09e001a05cbd1b0cbda6b5a8ff5731b6d612c22 (patch) | |
tree | 2ac55857b8bfda285dea214ca0d6a853b6a07dea /src/egl/drivers/haiku/egl_haiku.cpp | |
parent | 46a7fdd7ca86a5bbf5fff30028cb3093a41c4237 (diff) |
egl/haiku: Correct invalid void* conversion in calloc
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/egl/drivers/haiku/egl_haiku.cpp')
-rw-r--r-- | src/egl/drivers/haiku/egl_haiku.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/egl/drivers/haiku/egl_haiku.cpp b/src/egl/drivers/haiku/egl_haiku.cpp index 237cebf056e..287760661e5 100644 --- a/src/egl/drivers/haiku/egl_haiku.cpp +++ b/src/egl/drivers/haiku/egl_haiku.cpp @@ -313,7 +313,8 @@ _eglBuiltInDriver(void) { CALLED(); - _EGLDriver* driver = calloc(1, sizeof(*driver)); + _EGLDriver* driver; + driver = (_EGLDriver*) calloc(1, sizeof(*driver)); if (!driver) { _eglError(EGL_BAD_ALLOC, "_eglBuiltInDriverHaiku"); return NULL; |