From 10a0f55b4aef591d59657236eb4d5e1f5994b725 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Fri, 13 Jul 2018 19:25:15 +0100 Subject: [PATCH] dtcm: Coverity 89051 --- cde/programs/dtcm/dtcm/group_editor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtcm/dtcm/group_editor.c b/cde/programs/dtcm/dtcm/group_editor.c index 6c6b1749..cb51f948 100644 --- a/cde/programs/dtcm/dtcm/group_editor.c +++ b/cde/programs/dtcm/dtcm/group_editor.c @@ -1684,13 +1684,15 @@ add_to_gaccess_list( int cnt = 1; char access, *buf; XmString xmstr; - Calendar *c = ge->cal; + Calendar *c; Props_pu *p = (Props_pu *)ge->cal->properties_pu; Access_data *new_data = NULL; if (!ge) return; + c = ge->cal; + while (ge->access_data && cnt <= ge->access_data->count) { new_data = (Access_data *) CmDataListGetData(ge->access_data, cnt); -- 2.25.1