mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client] remove all casts around malloc
The cast is unnecessary in C and should be removed to avoid clutter.
This commit is contained in:
@@ -59,7 +59,7 @@ void egl_damageConfigUI(EGL_Damage * damage)
|
||||
|
||||
bool egl_damageInit(EGL_Damage ** damage)
|
||||
{
|
||||
*damage = (EGL_Damage *)malloc(sizeof(**damage));
|
||||
*damage = malloc(sizeof(**damage));
|
||||
if (!*damage)
|
||||
{
|
||||
DEBUG_ERROR("Failed to malloc EGL_Damage");
|
||||
|
Reference in New Issue
Block a user