From: Peter Howkins Date: Fri, 13 Jul 2018 18:02:57 +0000 (+0100) Subject: dtcm: Coverity 89111 X-Git-Tag: 2.3.0a~72 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e718778eadedee7aed24a32874750e7b9158e019;p=oweals%2Fcde.git dtcm: Coverity 89111 --- 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); + } }