[client] egl: fix undefined behaviour with zero size array
This commit is contained in:
1 parent
c5f71d18c4
commit
dca5da02a0
2 files changed
+9
No files matched your search
@@ -211,6 +211,9 @@ inline static bool rectIntersects(const FrameDamageRect * r1, const FrameDamageR
|
||||
|
||||
int rectsMergeOverlapping(FrameDamageRect * rects, int count)
|
||||
{
|
||||
if (count == 0)
|
||||
return 0;
|
||||
|
||||
bool removed[count];
|
||||
bool changed;
|
||||
|
||||
|
||||
Reference in new issue
Block a user