/kernel/trunk/generic/src/adt/hash_table.c |
---|
51,7 → 51,7 |
ASSERT(op && op->hash && op->compare); |
ASSERT(max_keys > 0); |
h->entry = malloc(m * sizeof(link_t *)); |
h->entry = malloc(m * sizeof(link_t *), 0); |
if (!h->entry) { |
panic("cannot allocate memory for hash table\n"); |
} |