dtcm: Coverity 87364
authorPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 17:52:08 +0000 (18:52 +0100)
committerPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 17:52:08 +0000 (18:52 +0100)
cde/programs/dtcm/dtcm/group_editor.c

index c0517861ca96b2d83e95bf5170e9089c8f1ddf7c..77cb115df24d085aec5d638091f2eda8e1bf6542 100644 (file)
@@ -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);