From 603e91791875e46286bdcf31c023994f19dc86cb Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Fri, 13 Jul 2018 17:34:42 +0100 Subject: [PATCH] dtcm: Coverity 87931 --- cde/programs/dtcm/dtcm/group_editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtcm/dtcm/group_editor.c b/cde/programs/dtcm/dtcm/group_editor.c index 5e2a8046..c0517861 100644 --- a/cde/programs/dtcm/dtcm/group_editor.c +++ b/cde/programs/dtcm/dtcm/group_editor.c @@ -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; -- 2.25.1