diff --git a/cde/programs/dtfile/OverWrite.c b/cde/programs/dtfile/OverWrite.c index dc73bbb3b..59fb7bbab 100644 --- a/cde/programs/dtfile/OverWrite.c +++ b/cde/programs/dtfile/OverWrite.c @@ -1153,9 +1153,14 @@ create_replace_rename_dialog(Widget parent_widget, XtFree(title); - XtFree(actions.actionList[1].label); - actions.actionList[1].label = orig_label; + + if (actions.actionList[1].label != orig_label) { + XtFree(actions.actionList[1].label); + actions.actionList[1].label = orig_label; + } + actions.actionList[1].msg_num = orig_msg_num; + return; } /* end create_replace_rename_dialog */