1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtcm: Coverity 89275

This commit is contained in:
Peter Howkins 2018-07-13 17:24:16 +01:00
parent 026a26ad4a
commit 1d951664a8

View file

@ -676,7 +676,7 @@ _DtCmsGetCalAttrsByName(
cms_attribute **attrs_r) cms_attribute **attrs_r)
{ {
CSA_return_code stat = CSA_SUCCESS; CSA_return_code stat = CSA_SUCCESS;
int i, j, index; int i, j, index = 0;
cms_attribute *attrs; cms_attribute *attrs;
if ((attrs = calloc(1, sizeof(cms_attribute)*num_names)) == NULL) if ((attrs = calloc(1, sizeof(cms_attribute)*num_names)) == NULL)