2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 22:05:23 +00:00

Fix up array reference

This commit is contained in:
Ted Lemon
1996-05-16 07:21:29 +00:00
parent cd05ee6b82
commit 01ce583c6d
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

2
hash.c
View File

@@ -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;
}