diff options
Diffstat (limited to 'src/wlstate.cc')
| -rw-r--r-- | src/wlstate.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wlstate.cc b/src/wlstate.cc index 68846fb..da5e555 100644 --- a/src/wlstate.cc +++ b/src/wlstate.cc @@ -60,6 +60,7 @@ static struct wl_registry_listener WAYC_REGISTRY_LISTENER = { bool wayc_wlstate_init(struct wlstate_s *state) { wayc_notnull(state); + memset(state, 0, sizeof(*state)); wl_display_t display = wl_display_connect(NULL); if (display == NULL) |
