dtfile/Menu: CID 89222
authorJon Trulson <jon@radscan.com>
Wed, 11 Apr 2018 22:01:55 +0000 (16:01 -0600)
committerJon Trulson <jon@radscan.com>
Wed, 11 Apr 2018 22:25:52 +0000 (16:25 -0600)
cde/programs/dtfile/Menu.c

index 574a861180fa0cc77541630be3ba315702c213ef..a9f317959d5f58ffba000ace91dc63ed015a5f4d 100644 (file)
@@ -1333,7 +1333,7 @@ SetMenuSensitivity(
    FileMgrRec * file_mgr_rec;
    XmMenuShellWidget mshell = (XmMenuShellWidget) w;
    DialogData * dialog_data;
-   FileMgrData * file_mgr_data;
+   FileMgrData * file_mgr_data = NULL;
 
    _XmGetActiveTopLevelMenu(mshell->composite.children[0], &mbar);
    XtSetArg(args[0], XmNuserData, &file_mgr_rec);
@@ -1519,6 +1519,9 @@ SetMenuSensitivity(
       }
    }
 
+   if (!file_mgr_data)
+       return;
+
    if(showFilesystem )
    {
       if (file_mgr_data->show_hid_enabled)