xwm: memset struct to 0
We rely on focus_window being initialize to NULL.
This commit is contained in:
@@ -1517,6 +1517,7 @@ weston_wm_create(struct weston_xserver *wxs)
|
|||||||
if (wm == NULL)
|
if (wm == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
memset(wm, 0, sizeof *wm);
|
||||||
wm->server = wxs;
|
wm->server = wxs;
|
||||||
wm->window_hash = hash_table_create();
|
wm->window_hash = hash_table_create();
|
||||||
if (wm->window_hash == NULL) {
|
if (wm->window_hash == NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user