dtcm: Coverity 174819
authorPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 16:39:03 +0000 (17:39 +0100)
committerPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 16:39:03 +0000 (17:39 +0100)
cde/programs/dtcm/dtcm/props_pu.c

index 999d1a5b353047cdfbc059418cfb1e403dc84de6..6315fb23dbd2531888aff8fe793744ca2969c5ef 100644 (file)
@@ -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;