diff options
-rw-r--r-- | src/add_window.c | 2 |
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); |