aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-09-22 09:36:02 -0400
committerDrew DeVault <sir@cmpwn.com>2017-09-22 09:36:02 -0400
commitb6cf9b14a420fb02d23c85fa22965a697747ad80 (patch)
treed91172c7e1385c41cd15a61785cea816b0b6cf80
parent21f5b92973031bb228dca240d61dc932f8c96dd1 (diff)
Fix possibly uninitialized variable
-rw-r--r--examples/compositor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/compositor.c b/examples/compositor.c
index 3caca589..c67b8481 100644
--- a/examples/compositor.c
+++ b/examples/compositor.c
@@ -184,7 +184,7 @@ static void handle_xdg_surface_v6_request_move(struct wl_listener *listener,
wl_container_of(listener, esurface, request_move_listener);
struct wlr_xdg_toplevel_v6_move_event *e = data;
struct sample_state *sample = esurface->sample;
- struct input_event_cache *event;
+ struct input_event_cache *event = NULL;
for (size_t i = 0;
i < sizeof(sample->input_cache) / sizeof(sample->input_cache[0]);
++i) {