From 664e4effdbd46c141094ba6a6f8decfbf27a4191 Mon Sep 17 00:00:00 2001 From: Philippe Pepiot Date: Tue, 17 May 2011 20:38:18 +0200 Subject: [PATCH] Client: Fill new client with 0. fixes #116 Submitted-by: e-t172 Signed-off-by: Philippe Pepiot --- src/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.c b/src/client.c index 6fb89ff..e20d11d 100644 --- a/src/client.c +++ b/src/client.c @@ -819,7 +819,7 @@ client_manage(Window w, XWindowAttributes *wa, Bool ar) screen_get_sel(); - c = zmalloc(sizeof(Client)); + c = zcalloc(sizeof(Client)); c->win = w; c->screen = selscreen; c->flags = 0;