summary refs log tree commit diff
path: root/screen.c
diff options
context:
space:
mode:
authorokan <okan>2014-10-08 15:31:01 +0000
committerokan <okan>2014-10-08 15:31:01 +0000
commit9cada703b9772c5d9738c9bfa632e57678174025 (patch)
treef850aa1aed03fd2da900ae2d5a110f23e0f7539c /screen.c
parent836c9f49d644e52395a12d0805260e070c999099 (diff)
downloadcwm-9cada703b9772c5d9738c9bfa632e57678174025.tar.gz
cwm-9cada703b9772c5d9738c9bfa632e57678174025.tar.xz
cwm-9cada703b9772c5d9738c9bfa632e57678174025.zip
no need for calloc(1,.. here, malloc is fine since we initialize
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index f9a4ca8..18ffd05 100644
--- a/screen.c
+++ b/screen.c
@@ -38,7 +38,7 @@ screen_init(int which)
 	XSetWindowAttributes	 rootattr;
 	unsigned int		 nwins, i;
 
-	sc = xcalloc(1, sizeof(*sc));
+	sc = xmalloc(sizeof(*sc));
 
 	TAILQ_INIT(&sc->clientq);
 	TAILQ_INIT(&sc->regionq);
@@ -48,6 +48,7 @@ screen_init(int which)
 	sc->rootwin = RootWindow(X_Dpy, sc->which);
 	sc->cycling = 0;
 	sc->hideall = 0;
+
 	conf_screen(sc);
 
 	xu_ewmh_net_supported(sc);