From 1d951664a88884e943641e8a2aadb38432bb97f1 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Fri, 13 Jul 2018 17:24:16 +0100 Subject: [PATCH] dtcm: Coverity 89275 --- cde/programs/dtcm/server/cmscalendar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtcm/server/cmscalendar.c b/cde/programs/dtcm/server/cmscalendar.c index 0bdd2e9c..6c6a47b8 100644 --- a/cde/programs/dtcm/server/cmscalendar.c +++ b/cde/programs/dtcm/server/cmscalendar.c @@ -676,7 +676,7 @@ _DtCmsGetCalAttrsByName( cms_attribute **attrs_r) { CSA_return_code stat = CSA_SUCCESS; - int i, j, index; + int i, j, index = 0; cms_attribute *attrs; if ((attrs = calloc(1, sizeof(cms_attribute)*num_names)) == NULL) -- 2.25.1