Module Name:    xsrc
Committed By:   christos
Date:           Sat Sep  5 14:27:43 UTC 2015

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

Log Message:
CID 1322893: Add missing NULL check


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 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.7 xsrc/external/mit/ctwm/dist/menus.c:1.8
--- xsrc/external/mit/ctwm/dist/menus.c:1.7	Sat Sep  5 10:11:26 2015
+++ xsrc/external/mit/ctwm/dist/menus.c	Sat Sep  5 10:27:43 2015
@@ -4077,7 +4077,7 @@ void DeIconify(TwmWindow *tmp_win)
     /* de-iconify the main window */
     if (Scr->WindowMask)
 	XRaiseWindow (dpy, Scr->WindowMask);
-    if (tmp_win->isicon)
+    if (tmp_win && tmp_win->isicon)
     {
 	isicon = TRUE;
 	if (tmp_win->icon_on && tmp_win->icon && tmp_win->icon->w)

Reply via email to