From e718778eadedee7aed24a32874750e7b9158e019 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Fri, 13 Jul 2018 19:02:57 +0100 Subject: [PATCH] dtcm: Coverity 89111 --- cde/programs/dtcm/dtcm/editor.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cde/programs/dtcm/dtcm/editor.c b/cde/programs/dtcm/dtcm/editor.c index 2d392b11..1f05cfe7 100644 --- a/cde/programs/dtcm/dtcm/editor.c +++ b/cde/programs/dtcm/dtcm/editor.c @@ -156,7 +156,7 @@ e_list_select_proc(Widget w, XtPointer client_data, XtPointer data) { static void e_quit_handler(Widget w, XtPointer cdata, XtPointer data) { Editor *e = (Editor *)cdata; - Widget popMeDown; + Widget popMeDown = NULL; if (w == e->frame) { editor_clean_up(e); @@ -168,7 +168,9 @@ e_quit_handler(Widget w, XtPointer cdata, XtPointer data) { popMeDown = e->view_form; } - XtUnmanageChild(popMeDown); + if(popMeDown) { + XtUnmanageChild(popMeDown); + } } -- 2.25.1