dtfile: Resolve uninitialized warnings

This commit is contained in:
Peter Howkins
2021-12-22 01:24:35 +00:00
committed by Jon Trulson
parent daf072463a
commit 207253b401
9 changed files with 52 additions and 40 deletions

View File

@@ -3219,7 +3219,7 @@ LoadViews (
static char * name_list[] = { DTFILE_CLASS_NAME, NULL, NULL };
char view_number[11];
DialogData * dialog_data;
FileMgrData * file_mgr_data;
FileMgrData * file_mgr_data = NULL;
char * workspaces;
XClassHint classHints;
char * iconify = NULL;
@@ -3397,7 +3397,7 @@ LoadViews (
view_count++;
}
if (openDirType == NEW)
if (openDirType == NEW && file_mgr_data)
ForceMyIconOpen(file_mgr_data->host, NULL);
}