dtcm: Coverity 89275
authorPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 16:24:16 +0000 (17:24 +0100)
committerPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 16:24:16 +0000 (17:24 +0100)
cde/programs/dtcm/server/cmscalendar.c

index 0bdd2e9cb6d4f54d934d06d9c50d272276a24e61..6c6a47b884e523e66b637f8bd5fe39b640b4bb49 100644 (file)
@@ -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)