File twm-sig11.diff of Package twm

Index: twm-1.0.4/src/add_window.c
===================================================================
--- twm-1.0.4/src.orig/add_window.c
+++ twm-1.0.4/src/add_window.c
@@ -1538,10 +1538,11 @@ FetchWmColormapWindows (TwmWindow *tmp)
 
 	cwins = (ColormapWindow **) malloc(sizeof(ColormapWindow *));
 	if (XFindContext(dpy, tmp->w, ColormapContext, (caddr_t *)&cwins[0]) ==
-		XCNOENT)
+	    XCNOENT) {
 	    cwins[0] = CreateColormapWindow(tmp->w,
 			    (Bool) tmp->cmaps.number_cwins == 0, False);
-	else
+	    if (cwins[0] == NULL) number_cmap_windows = 0;
+	} else
 	    cwins[0]->refcnt++;
     }