From 2fee85a608bfef066a02e3b61c5f2793300761eb Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Fri, 13 Jul 2018 17:39:03 +0100 Subject: [PATCH] dtcm: Coverity 174819 --- cde/programs/dtcm/dtcm/props_pu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1