From 3af957e308592a7581bdefe38595c8157394df63 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Fri, 13 Jul 2018 19:19:58 +0100 Subject: [PATCH] dtcm: Coverity 88382 --- cde/programs/dtcm/dtcm/rfp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtcm/dtcm/rfp.c b/cde/programs/dtcm/dtcm/rfp.c index d0db3619..45876862 100644 --- a/cde/programs/dtcm/dtcm/rfp.c +++ b/cde/programs/dtcm/dtcm/rfp.c @@ -213,7 +213,7 @@ rfp_apply_proc(Widget w, XtPointer client_data, XtPointer cbs) { RFP *rfp = (RFP *)client_data; char *str, buf[128]; XmString xmstr; - Calendar *c = rfp->cal; + Calendar *c; Props_pu *pu = (Props_pu *)c->properties_pu; Repeat_scope_menu_op op = REPEAT_DAYS; char *repeat_str; @@ -221,6 +221,8 @@ rfp_apply_proc(Widget w, XtPointer client_data, XtPointer cbs) { if (!rfp) return; + c = rfp->cal; + str = XmTextGetString(rfp->repeat_popup_text); if (!string_is_number(str)) { -- 2.25.1