no need for calloc(1,.. here, malloc is fine since we initialize
This commit is contained in:
3
screen.c
3
screen.c
@@ -38,7 +38,7 @@ screen_init(int which)
|
|||||||
XSetWindowAttributes rootattr;
|
XSetWindowAttributes rootattr;
|
||||||
unsigned int nwins, i;
|
unsigned int nwins, i;
|
||||||
|
|
||||||
sc = xcalloc(1, sizeof(*sc));
|
sc = xmalloc(sizeof(*sc));
|
||||||
|
|
||||||
TAILQ_INIT(&sc->clientq);
|
TAILQ_INIT(&sc->clientq);
|
||||||
TAILQ_INIT(&sc->regionq);
|
TAILQ_INIT(&sc->regionq);
|
||||||
@@ -48,6 +48,7 @@ screen_init(int which)
|
|||||||
sc->rootwin = RootWindow(X_Dpy, sc->which);
|
sc->rootwin = RootWindow(X_Dpy, sc->which);
|
||||||
sc->cycling = 0;
|
sc->cycling = 0;
|
||||||
sc->hideall = 0;
|
sc->hideall = 0;
|
||||||
|
|
||||||
conf_screen(sc);
|
conf_screen(sc);
|
||||||
|
|
||||||
xu_ewmh_net_supported(sc);
|
xu_ewmh_net_supported(sc);
|
||||||
|
|||||||
Reference in New Issue
Block a user