diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-05-16 10:13:41 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-05-16 10:13:41 -0400 |
commit | 0b61130baed6b3734942718a97d382d73117029a (patch) | |
tree | 4c22f82889b632e04461176a8c6a503d2894e2d1 | |
parent | 88c1607fb734b885b8419004058242639898d2d1 (diff) |
xwm: memset struct to 0
We rely on focus_window being initialize to NULL.
-rw-r--r-- | src/xserver-launcher.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xserver-launcher.c b/src/xserver-launcher.c index 0e25390..d553703 100644 --- a/src/xserver-launcher.c +++ b/src/xserver-launcher.c @@ -1517,6 +1517,7 @@ weston_wm_create(struct weston_xserver *wxs) if (wm == NULL) return NULL; + memset(wm, 0, sizeof *wm); wm->server = wxs; wm->window_hash = hash_table_create(); if (wm->window_hash == NULL) { |