[PATCH weston 6/7] compositor: initialize ret in repaint_timer_handler

Emre Ucan eucan at de.adit-jv.com
Tue Mar 20 14:29:40 UTC 2018


If output_list of compositor is empty, value of
ret is read without initialization.

Signed-off-by: Emre Ucan <eucan at de.adit-jv.com>
---
 libweston/compositor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libweston/compositor.c b/libweston/compositor.c
index 67b5d28..4816f33 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);
 
-- 
2.7.4



More information about the wayland-devel mailing list