From c89f61660a2edacb7fa75250effaadcd94d598ef Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Wed, 15 Sep 2004 23:56:40 +0000 Subject: [PATCH] Fix minor warning -- no need to realloc here because we've never alloc'ed before. This commit was SVN r2694. --- src/class/ompi_hash_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class/ompi_hash_table.c b/src/class/ompi_hash_table.c index 6c9fb7fabd..210a4c8499 100644 --- a/src/class/ompi_hash_table.c +++ b/src/class/ompi_hash_table.c @@ -63,7 +63,7 @@ int ompi_hash_table_init(ompi_hash_table_t* ht, size_t table_size) } ht->ht_mask = power2-1; - ht->ht_table = realloc(ht->ht_table, power2 * sizeof(ompi_list_t)); + ht->ht_table = malloc(power2 * sizeof(ompi_list_t)); if(NULL == ht->ht_table) return OMPI_ERR_OUT_OF_RESOURCE; for(i=ht->ht_table_size; i