dtcm: Coverity 87931
authorPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 16:34:42 +0000 (17:34 +0100)
committerPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 16:34:42 +0000 (17:34 +0100)
cde/programs/dtcm/dtcm/group_editor.c

index 5e2a8046790c8a64428b4e31b45ccf2356cab3be..c0517861ca96b2d83e95bf5170e9089c8f1ddf7c 100644 (file)
@@ -1901,7 +1901,7 @@ remove_all_gaccess_data(GEditor *ge) {
                step = (Access_data *)CmDataListGetData(ge->access_data, i);
                if (step && step->name)
                        free(step->name);
-               if (step->appt_head && step->appt_count >= 0)
+               if (step && step->appt_head && step->appt_count >= 0)
                        csa_free(step->appt_head);
                step->appt_head = NULL;
                step->appt_count = 0;