From 6389b49e88cb11bf70b67b0943642c17ca7e4d0b Mon Sep 17 00:00:00 2001 From: jgarcia Date: Mon, 19 May 2008 07:54:18 +0000 Subject: [PATCH] VVtemp might be uninitialized if there is no data --- src/c/read.d | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/c/read.d b/src/c/read.d index 3f62f4e50..c67fcf474 100644 --- a/src/c/read.d +++ b/src/c/read.d @@ -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);