[PATCH] Fix uninitialized msec_to_next in output_repaint_timer_arm
Sergi Granell
xerpi.g.12 at gmail.com
Sat Mar 18 12:01:15 UTC 2017
Signed-off-by: Sergi Granell <xerpi.g.12 at gmail.com>
---
libweston/compositor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libweston/compositor.c b/libweston/compositor.c
index fb647daa..048b195c 100644
--- a/libweston/compositor.c
+++ b/libweston/compositor.c
@@ -2388,7 +2388,7 @@ output_repaint_timer_arm(struct weston_compositor *compositor)
struct weston_output *output;
bool any_should_repaint = false;
struct timespec now;
- int64_t msec_to_next;
+ int64_t msec_to_next = INT64_MAX;
weston_compositor_read_presentation_clock(compositor, &now);
--
2.12.0
More information about the wayland-devel
mailing list