From 1fa5834c60078684d50da33ff8de2db24b093255 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Wed, 11 Apr 2018 16:01:55 -0600 Subject: [PATCH] dtfile/Menu: CID 89222 --- cde/programs/dtfile/Menu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtfile/Menu.c b/cde/programs/dtfile/Menu.c index 574a8611..a9f31795 100644 --- a/cde/programs/dtfile/Menu.c +++ b/cde/programs/dtfile/Menu.c @@ -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) -- 2.25.1