From a1e23fe13070e24921ddc9aa8edeb1c9cddb5596 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Thu, 12 Apr 2018 11:58:34 -0600 Subject: [PATCH] dtfile/FileOp: CID 175228 --- cde/programs/dtfile/FileOp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtfile/FileOp.c b/cde/programs/dtfile/FileOp.c index 05d104df..982f1cde 100644 --- a/cde/programs/dtfile/FileOp.c +++ b/cde/programs/dtfile/FileOp.c @@ -3466,7 +3466,7 @@ DisplayDuplicateOpError( int index) { - char *msgptr,*err_msg = NULL,*title,*tchar; + char *msgptr = NULL,*err_msg = NULL,*title = NULL,*tchar; Widget dialogwidget; if (cb_data->mode == MOVE_FILE) @@ -3523,6 +3523,12 @@ DisplayDuplicateOpError( } } + if (!err_msg) + { + XtFree(title); + return; + } + msgptr = XtCalloc(1,strlen(err_msg)+strlen(cb_data->updates[index].file)+10); sprintf(msgptr,err_msg,cb_data->updates[index].file); -- 2.25.1