mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-22 01:14:15 +03:00
Fix over-allocation of space for hash table chain heads.
This commit is contained in:
parent
ffe3ce2615
commit
f72da52cfc
@ -92,7 +92,7 @@ struct hash_table *hash_create(unsigned int chains)
|
||||
}
|
||||
|
||||
r->nchains = chains;
|
||||
r->chain = calloc(chains, sizeof(struct hash_entry));
|
||||
r->chain = calloc(chains, sizeof(struct hash_entry *));
|
||||
|
||||
if (r->chain == NULL) {
|
||||
LOG(("Not enough memory for %d hash table chains.", chains));
|
||||
|
Loading…
x
Reference in New Issue
Block a user