added memsetting of record cache
@@ -318,6 +318,8 @@ split(
int i, j;
ion_byte_t *records = alloca(linear_hash->record_total_size * linear_hash->records_per_bucket);
+ memset(records, 0, linear_hash->record_total_size * linear_hash->records_per_bucket);
+
ion_fpos_t record_offset = 0;
while (bucket.overflow_location != -1) {
@@ -667,10 +669,11 @@ linear_hash_get(
ion_byte_t record_status;
int found = 0;
-
int i;
ion_byte_t *records = alloca(linear_hash->record_total_size * linear_hash->records_per_bucket);
+ memset(records, 0, linear_hash->record_total_size * linear_hash->records_per_bucket);
+
ion_fpos_t record_offset = 0;
while (bucket.overflow_location != -1 && found == 0) {
@@ -870,6 +873,8 @@ linear_hash_delete(
int i;
ion_byte_t *records = alloca(linear_hash->record_total_size * linear_hash->records_per_bucket);
+ memset(records, 0, linear_hash->record_total_size * linear_hash->records_per_bucket);
+
ion_fpos_t record_offset = 0;
ion_fpos_t record_loc;
@@ -1320,6 +1325,7 @@ key_bytes_to_int(
ion_byte_t *key,
linear_hash_table_t *linear_hash
) {
+ UNUSED(linear_hash);
/*
int i;
long key_bytes_as_int = 0;
