From: Peter Howkins Date: Fri, 13 Jul 2018 16:39:03 +0000 (+0100) Subject: dtcm: Coverity 174819 X-Git-Tag: 2.3.0a~116 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2fee85a608bfef066a02e3b61c5f2793300761eb;p=oweals%2Fcde.git dtcm: Coverity 174819 --- diff --git a/cde/programs/dtcm/dtcm/props_pu.c b/cde/programs/dtcm/dtcm/props_pu.c index 999d1a5b..6315fb23 100644 --- a/cde/programs/dtcm/dtcm/props_pu.c +++ b/cde/programs/dtcm/dtcm/props_pu.c @@ -2159,7 +2159,7 @@ p_save_changes(Calendar *c) { } - if (((ToDo *) c->todo)->base_form_mgr) { + if (c->todo && ((ToDo *) c->todo)->base_form_mgr) { ToDo *t = (ToDo *)c->todo; DSSW *dssw = &((ToDo *) c->todo)->dssw;