From 01ce583c6db62e05e6c9eb4b5a40f96f7d89e517 Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Thu, 16 May 1996 07:21:29 +0000 Subject: [PATCH] Fix up array reference --- common/hash.c | 2 +- hash.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/hash.c b/common/hash.c index e3f848e7..f268f5d7 100644 --- a/common/hash.c +++ b/common/hash.c @@ -53,7 +53,7 @@ struct hash_table *new_hash () struct hash_table *rv = new_hash_table (DEFAULT_HASH_SIZE, "new_hash"); if (!rv) return rv; - memset (&rv -> buckets, 0, + memset (&rv -> buckets [0], 0, DEFAULT_HASH_SIZE * sizeof (struct hash_bucket *)); return rv; } diff --git a/hash.c b/hash.c index e3f848e7..f268f5d7 100644 --- a/hash.c +++ b/hash.c @@ -53,7 +53,7 @@ struct hash_table *new_hash () struct hash_table *rv = new_hash_table (DEFAULT_HASH_SIZE, "new_hash"); if (!rv) return rv; - memset (&rv -> buckets, 0, + memset (&rv -> buckets [0], 0, DEFAULT_HASH_SIZE * sizeof (struct hash_bucket *)); return rv; }