zero-initialize Client struct on allocation
This commit is contained in:
parent
56a7a98ed9
commit
7b2e92d256
@ -65,7 +65,7 @@ Client* wm_client_create(Wm *wm, Window w)
|
|||||||
|
|
||||||
XGetWMName(wm->display, w, &xtp);
|
XGetWMName(wm->display, w, &xtp);
|
||||||
|
|
||||||
Client *c = malloc(sizeof(Client));
|
Client *c = calloc(1, sizeof(Client));
|
||||||
|
|
||||||
c->next = NULL;
|
c->next = NULL;
|
||||||
c->prev = NULL;
|
c->prev = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user