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:
Emre Ucan 2018-03-20 15:29:40 +01:00 committed by Pekka Paalanen
parent 95c7095e13
commit e479ed8ec2
1 changed files with 1 additions and 1 deletions

View File

@ -2457,7 +2457,7 @@ output_repaint_timer_handler(void *data)
struct weston_output *output;
struct timespec now;
void *repaint_data = NULL;
int ret;
int ret = 0;
weston_compositor_read_presentation_clock(compositor, &now);