From 69eb07bb0a2ac0755261fe75ef88258d3eb5919c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?m=C3=A6p?= Date: Wed, 6 Aug 2014 20:42:57 +0200 Subject: [PATCH] fix crash caused by free of uninitialized pointer --- compton.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compton.h b/compton.h index 637d13f34..4844c9c42 100644 --- a/compton.h +++ b/compton.h @@ -351,7 +351,7 @@ isdamagenotify(session_t *ps, const XEvent *ev) { */ static inline XTextProperty * make_text_prop(session_t *ps, char *str) { - XTextProperty *pprop = cmalloc(1, XTextProperty); + XTextProperty *pprop = ccalloc(1, XTextProperty); if (XmbTextListToTextProperty(ps->dpy, &str, 1, XStringStyle, pprop)) { cxfree(pprop->value);