mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-23 09:54:19 +03:00
Allocate correct amount of mem for pointers to imagemaps.
This commit is contained in:
parent
267c630b88
commit
b646592928
@ -141,7 +141,7 @@ bool imagemap_create(html_content *c)
|
||||
assert(c != NULL);
|
||||
|
||||
if (c->imagemaps == NULL) {
|
||||
c->imagemaps = calloc(HASH_SIZE, sizeof(struct imagemap));
|
||||
c->imagemaps = calloc(HASH_SIZE, sizeof(struct imagemap *));
|
||||
if (c->imagemaps == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user