From: Peter Howkins Date: Fri, 13 Jul 2018 17:52:08 +0000 (+0100) Subject: dtcm: Coverity 87364 X-Git-Tag: 2.3.0a~78 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dfa296e34e003adcac8243c0bfe235c88c6ce4b6;p=oweals%2Fcde.git dtcm: Coverity 87364 --- 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);