From e479ed8ec22514bb608c5593fe963701398e62f6 Mon Sep 17 00:00:00 2001 From: Emre Ucan Date: Tue, 20 Mar 2018 15:29:40 +0100 Subject: [PATCH] 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 Reviewed-by: Pekka Paalanen --- libweston/compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libweston/compositor.c b/libweston/compositor.c index 67b5d283..4816f33e 100644 --- a/libweston/compositor.c +++ b/libweston/compositor.c @@ -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);