mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 22:35:25 +00:00
Fix up array reference
This commit is contained in:
@@ -53,7 +53,7 @@ struct hash_table *new_hash ()
|
|||||||
struct hash_table *rv = new_hash_table (DEFAULT_HASH_SIZE, "new_hash");
|
struct hash_table *rv = new_hash_table (DEFAULT_HASH_SIZE, "new_hash");
|
||||||
if (!rv)
|
if (!rv)
|
||||||
return rv;
|
return rv;
|
||||||
memset (&rv -> buckets, 0,
|
memset (&rv -> buckets [0], 0,
|
||||||
DEFAULT_HASH_SIZE * sizeof (struct hash_bucket *));
|
DEFAULT_HASH_SIZE * sizeof (struct hash_bucket *));
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
2
hash.c
2
hash.c
@@ -53,7 +53,7 @@ struct hash_table *new_hash ()
|
|||||||
struct hash_table *rv = new_hash_table (DEFAULT_HASH_SIZE, "new_hash");
|
struct hash_table *rv = new_hash_table (DEFAULT_HASH_SIZE, "new_hash");
|
||||||
if (!rv)
|
if (!rv)
|
||||||
return rv;
|
return rv;
|
||||||
memset (&rv -> buckets, 0,
|
memset (&rv -> buckets [0], 0,
|
||||||
DEFAULT_HASH_SIZE * sizeof (struct hash_bucket *));
|
DEFAULT_HASH_SIZE * sizeof (struct hash_bucket *));
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user