1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtcm: Coverity 87931

This commit is contained in:
Peter Howkins 2018-07-13 17:34:42 +01:00
parent 03d009d63e
commit 603e917918

View file

@ -1901,7 +1901,7 @@ remove_all_gaccess_data(GEditor *ge) {
step = (Access_data *)CmDataListGetData(ge->access_data, i); step = (Access_data *)CmDataListGetData(ge->access_data, i);
if (step && step->name) if (step && step->name)
free(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); csa_free(step->appt_head);
step->appt_head = NULL; step->appt_head = NULL;
step->appt_count = 0; step->appt_count = 0;