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