From: Peter Howkins Date: Fri, 13 Jul 2018 18:00:54 +0000 (+0100) Subject: dtcm: Coverity 88350 X-Git-Tag: 2.3.0a~74 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4908fbb49a073f835d6076fa87f41b619172bf7e;p=oweals%2Fcde.git dtcm: Coverity 88350 --- diff --git a/cde/programs/dtcm/server/cmsconvert.c b/cde/programs/dtcm/server/cmsconvert.c index 93ca34c4..1a39fde6 100644 --- a/cde/programs/dtcm/server/cmsconvert.c +++ b/cde/programs/dtcm/server/cmsconvert.c @@ -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++) {