projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07fe841
)
dtfile/FileOp: CID 175228
author
Jon Trulson
<jon@radscan.com>
Thu, 12 Apr 2018 17:58:34 +0000
(11:58 -0600)
committer
Jon Trulson
<jon@radscan.com>
Thu, 12 Apr 2018 17:58:34 +0000
(11:58 -0600)
cde/programs/dtfile/FileOp.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtfile/FileOp.c
b/cde/programs/dtfile/FileOp.c
index 05d104df7cf2b6006813699f5cecf33da55919a5..982f1cde84ee503ce305f334dfa78c00d52e6e5f 100644
(file)
--- 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);