dtcm: Coverity 88350
authorPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 18:00:54 +0000 (19:00 +0100)
committerPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 18:00:54 +0000 (19:00 +0100)
cde/programs/dtcm/server/cmsconvert.c

index 93ca34c4a19c5d92897cb24ac5d7702c41585bf4..1a39fde6c12b12e7129ef88ed0a11b988a6bb403 100644 (file)
@@ -752,7 +752,7 @@ _AttrsToAbbrAppt(uint size, cms_attribute *attrs, Abb_Appt_4 *appt)
        CSA_return_code stat = CSA_SUCCESS;
        char            *ptr;
        time_t          endtick;
-       int             i, typeindex, stypeindex = -1, enddateindex = -1;
+       int             i, typeindex = 0, stypeindex = -1, enddateindex = -1;
        char            buf[BUFSIZ];
 
        for (i = 0; i < size && stat == CSA_SUCCESS; i++) {