Fix additional coverity warnings.

This commit is contained in:
Fabrizio Fabbri 2017-06-06 23:43:02 +02:00
parent da47ed7f5f
commit 06f5697074
No known key found for this signature in database
GPG key ID: 8276EDF3D10E6C35
9 changed files with 28 additions and 28 deletions

View file

@ -550,7 +550,6 @@ ecl_array_allocself(cl_object x)
}
#endif
case ecl_aet_bc: {
cl_index elt_size = 1;
x->vector.self.bc = (ecl_base_char *)ecl_alloc_atomic(d+1);
/* Null terminate the string */
x->vector.self.bc[d] = 0;
@ -752,7 +751,7 @@ cl_array_element_type(cl_object a)
void
ecl_displace(cl_object from, cl_object to, cl_object offset)
{
cl_index j;
cl_fixnum j;
void *base;
cl_elttype totype, fromtype;
fromtype = from->array.elttype;