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

index b3b0f5cff41befdc197a490685c804d278e30d6c..999d1a5b353047cdfbc059418cfb1e403dc84de6 100644 (file)
@@ -2136,7 +2136,7 @@ p_save_changes(Calendar *c) {
 
         if (redisplay_mask & PROPS_REDO_EDITORS) {
 
-               if (((Editor *) c->editor)->base_form_mgr) {
+               if (c->editor && ((Editor *) c->editor)->base_form_mgr) {
 
                        Editor *e = (Editor *) c->editor;
                        DSSW *dssw = &((Editor *) c->editor)->dssw;