compositor: initialize ret in repaint_timer_handler
If output_list of compositor is empty, value of ret is read without initialization. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
committed by
Pekka Paalanen
parent
95c7095e13
commit
e479ed8ec2
@@ -2457,7 +2457,7 @@ output_repaint_timer_handler(void *data)
|
|||||||
struct weston_output *output;
|
struct weston_output *output;
|
||||||
struct timespec now;
|
struct timespec now;
|
||||||
void *repaint_data = NULL;
|
void *repaint_data = NULL;
|
||||||
int ret;
|
int ret = 0;
|
||||||
|
|
||||||
weston_compositor_read_presentation_clock(compositor, &now);
|
weston_compositor_read_presentation_clock(compositor, &now);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user