aboutsummaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authorokan2014-10-08 15:31:01 +0000
committerokan2014-10-08 15:31:01 +0000
commit00875a40f2f3916f4f0a496da3cdbaef9fab24c8 (patch)
tree06d659af23834e56b05e42cc892edc2eddab92b3 /screen.c
parente72e46b0d681747a7c2632c6a2f76c77ff8e05e4 (diff)
downloadcwm-00875a40f2f3916f4f0a496da3cdbaef9fab24c8.tar.gz
no need for calloc(1,.. here, malloc is fine since we initialize
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/screen.c b/screen.c
index 42aa572..4ca44a9 100644
--- a/screen.c
+++ b/screen.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: screen.c,v 1.69 2014/10/08 12:48:51 okan Exp $
+ * $OpenBSD: screen.c,v 1.70 2014/10/08 15:31:01 okan Exp $
*/
#include <sys/param.h>
@@ -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);