VVtemp might be uninitialized if there is no data

This commit is contained in:
jgarcia 2008-05-19 07:54:18 +00:00
parent c642a2e789
commit 6389b49e88

View file

@ -2061,7 +2061,7 @@ read_VV(cl_object block, void (*entry_point)(cl_object))
volatile cl_object x;
cl_index i, len, perm_len, temp_len;
cl_object in;
cl_object *VV, *VVtemp;
cl_object *VV, *VVtemp = 0;
if (block == NULL) {
block = cl_alloc_object(t_codeblock);
@ -2136,7 +2136,6 @@ read_VV(cl_object block, void (*entry_point)(cl_object))
}
} end_loop_for_on;
if (VVtemp) {
cl_index bytes = sizeof(*VVtemp) * temp_len;
block->cblock.temp_data = NULL;
block->cblock.temp_data_size = 0;
memset(VVtemp, 0, bytes);