From dfa296e34e003adcac8243c0bfe235c88c6ce4b6 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Fri, 13 Jul 2018 18:52:08 +0100 Subject: [PATCH] dtcm: Coverity 87364 --- 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 c0517861..77cb115d 100644 --- a/cde/programs/dtcm/dtcm/group_editor.c +++ b/cde/programs/dtcm/dtcm/group_editor.c @@ -1690,7 +1690,7 @@ add_to_gaccess_list( while (ge->access_data && cnt <= ge->access_data->count) { new_data = (Access_data *) CmDataListGetData(ge->access_data, cnt); - if (strcmp(new_data->name, name) == 0) { + if (new_data && strcmp(new_data->name, name) == 0) { XmListDeselectPos(ge->access_list, cnt); if (select_val) XmListSelectPos(ge->access_list, cnt, True); -- 2.25.1