From faafc6dd359f0685691ac01c4570ee038f906b4f Mon Sep 17 00:00:00 2001 From: okan Date: Wed, 14 Sep 2016 21:00:24 +0000 Subject: [PATCH] Some clients fail to setup hints at all, so initalize for them; fallout from r1.218 switching to malloc - clearly missed this case. found the hard way by brynet@ --- app/cwm/client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/cwm/client.c b/app/cwm/client.c index 9dea2429a..38b1471f6 100644 --- a/app/cwm/client.c +++ b/app/cwm/client.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: client.c,v 1.220 2016/09/14 19:45:33 okan Exp $ + * $OpenBSD: client.c,v 1.221 2016/09/14 21:00:24 okan Exp $ */ #include @@ -78,6 +78,7 @@ client_init(Window win, struct screen_ctx *sc) cc->flags = 0; cc->stackingorder = 0; memset(&cc->hint, 0, sizeof(cc->hint)); + memset(&cc->ch, 0, sizeof(cc->ch)); cc->ptr.x = -1; cc->ptr.y = -1;