projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95c7095
)
compositor: initialize ret in repaint_timer_handler
author
Emre Ucan
<eucan@de.adit-jv.com>
Tue, 20 Mar 2018 14:29:40 +0000
(15:29 +0100)
committer
Pekka Paalanen
<pekka.paalanen@collabora.co.uk>
Wed, 28 Mar 2018 10:09:50 +0000
(13:09 +0300)
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>
libweston/compositor.c
patch
|
blob
|
history
diff --git
a/libweston/compositor.c
b/libweston/compositor.c
index
67b5d28
..
4816f33
100644
(file)
--- 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);