From: Adam Sampson Date: Sat, 26 Jan 2019 00:05:23 +0000 (+0000) Subject: Don't dereference an uninitialised pointer X-Git-Tag: 2.3.0a~16^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=162c88b6ea5a503c6c3f9df6b15d094ca4527296;p=oweals%2Fcde.git Don't dereference an uninitialised pointer This was an incorrect fix in "dtcm: Coverity 88382". --- diff --git a/cde/programs/dtcm/dtcm/rfp.c b/cde/programs/dtcm/dtcm/rfp.c index 45876862..0615b38f 100644 --- a/cde/programs/dtcm/dtcm/rfp.c +++ b/cde/programs/dtcm/dtcm/rfp.c @@ -214,7 +214,7 @@ rfp_apply_proc(Widget w, XtPointer client_data, XtPointer cbs) { char *str, buf[128]; XmString xmstr; Calendar *c; - Props_pu *pu = (Props_pu *)c->properties_pu; + Props_pu *pu; Repeat_scope_menu_op op = REPEAT_DAYS; char *repeat_str; @@ -222,6 +222,7 @@ rfp_apply_proc(Widget w, XtPointer client_data, XtPointer cbs) { return; c = rfp->cal; + pu = (Props_pu *)c->properties_pu; str = XmTextGetString(rfp->repeat_popup_text);