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

@@ -567,7 +567,7 @@ FileMoveCopyProcess(
int mode,
DesktopRec *desktopWindow)
{
char * target_dir, * from, * to;
char * target_dir, * from = NULL, * to;
int i, j, rc, result;
Boolean return_val = False;
Boolean isContainer;
@@ -587,7 +587,7 @@ FileMoveCopyProcess(
Boolean targetError = FALSE;
Boolean CopyError=FALSE,MoveError1=FALSE,MoveError2=FALSE;
char *CopyString=NULL,*MoveString1=NULL,*MoveString2=NULL;
Boolean Same;
Boolean Same = FALSE;
/* Get the fully qualified destination path. */
target_dir = (char *)ResolveLocalPathName(host, directory, NULL, home_host_name, &tt_status);
@@ -2489,7 +2489,7 @@ ChangeIconPipeCB(
Widget msg_widget;
DirectorySet *directory_set;
FileMgrData *file_mgr_data = NULL;
FileMgrRec *file_mgr_rec;
FileMgrRec *file_mgr_rec = NULL;
short pipe_msg;
int i, j, n;
int rc;