Allocate correct amount of mem for pointers to imagemaps.

This commit is contained in:
Michael Drake 2013-09-05 10:46:58 +01:00
parent 267c630b88
commit b646592928

View File

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