summaryrefslogtreecommitdiff
path: root/src/add_window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/add_window.c')
-rw-r--r--src/add_window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/add_window.c b/src/add_window.c
index 3895729..39a9325 100644
--- a/src/add_window.c
+++ b/src/add_window.c
@@ -1388,7 +1388,7 @@ CreateTwmColormap(Colormap c)
{
TwmColormap *cmap;
- cmap = malloc(sizeof(TwmColormap));
+ cmap = calloc(1, sizeof(TwmColormap));
if (!cmap || XSaveContext(dpy, c, ColormapContext, (XPointer) cmap)) {
if (cmap)
free(cmap);