scene: fix compile error in release builds

On release builds, gcc detects a variable uninitialized error, and generates
a warning, which gets converted to an error due to -Werror.
This commit is contained in:
Quantum 2021-09-09 03:06:17 -04:00 committed by Simon Ser
parent e05c884891
commit 679f5ed966

View File

@ -243,7 +243,7 @@ static void _scene_node_damage_whole(struct wlr_scene_node *node,
lx + child->state.x, ly + child->state.y);
}
int width, height;
int width = 0, height = 0;
switch (node->type) {
case WLR_SCENE_NODE_ROOT:
return;