dtfile/FileDialog: CID 88141,88451,88658,89058
authorJon Trulson <jon@radscan.com>
Wed, 11 Apr 2018 18:29:07 +0000 (12:29 -0600)
committerJon Trulson <jon@radscan.com>
Wed, 11 Apr 2018 22:25:52 +0000 (16:25 -0600)
cde/programs/dtfile/FileDialog.c

index 406afc1e512f567afd913070df037a2228d19f2e..a3e472d0729d3f1e665ad876624b40e042bde775 100644 (file)
@@ -1478,10 +1478,10 @@ RenameOk(
         XtPointer call_data )
 {
    DialogCallbackStruct * call_struct = (DialogCallbackStruct *)client_data;
-   char *title;
+   char *title = NULL;
    char *msg = NULL;
    char *new_name = NULL, *new_dir = NULL, new[MAX_PATH];
-   unsigned int btnMask;
+   unsigned int btnMask = 0;
    RenameDoneData *data;
    char to_host[256];
    char to_dir[MAX_PATH];
@@ -1937,7 +1937,7 @@ ShowMakeFileDialog(
    DialogData * dialog_data;
    FileMgrData * file_mgr_data;
 
-   Widget shell;
+   Widget shell = NULL;
    Widget form;
    Widget new_name;
    Widget new_text;
@@ -1952,7 +1952,7 @@ ShowMakeFileDialog(
    int flag=FLAG_RESET;
 
    DialogCallbackStruct * call_struct;
-   char * tmpStr, *tempStr;
+   char * tmpStr = NULL, *tempStr = NULL;
    XmString label_string;
 
    Arg args[20];