Module Name:    xsrc
Committed By:   christos
Date:           Sat Sep  5 14:11:26 UTC 2015

Modified Files:
        xsrc/external/mit/ctwm/dist: menus.c

Log Message:
CID 1322888: Fix NULL pointer check


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/menus.c
diff -u xsrc/external/mit/ctwm/dist/menus.c:1.6 xsrc/external/mit/ctwm/dist/menus.c:1.7
--- xsrc/external/mit/ctwm/dist/menus.c:1.6	Sat Sep  5 10:06:21 2015
+++ xsrc/external/mit/ctwm/dist/menus.c	Sat Sep  5 10:11:26 2015
@@ -4123,10 +4123,10 @@ static void UnmapTransients(TwmWindow *t
 	if (t != tmp_win &&
 		((t->transient && t->transientfor == tmp_win->w) ||
 		 t->group == tmp_win->w)) {
-	    if (iconify) {
+	    if (iconify && tmp_win->icon) {
 		if (t->icon_on)
 		    Zoom(t->icon->w, tmp_win->icon->w);
-		else if (tmp_win->icon)
+		else 
 		    Zoom(t->frame, tmp_win->icon->w);
 	    }
 

Reply via email to