zero-initialize Client struct on allocation

This commit is contained in:
Akos Horvath 2023-09-17 15:18:59 +02:00
parent 56a7a98ed9
commit 7b2e92d256

View File

@ -65,7 +65,7 @@ Client* wm_client_create(Wm *wm, Window w)
XGetWMName(wm->display, w, &xtp);
Client *c = malloc(sizeof(Client));
Client *c = calloc(1, sizeof(Client));
c->next = NULL;
c->prev = NULL;