Changeset 1c7da86 in mainline
- Timestamp:
- 2006-04-17T15:55:33Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3d77747
- Parents:
- da32cea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libadt/generic/hash_table.c
rda32cea r1c7da86 55 55 assert(max_keys > 0); 56 56 57 h->entry = malloc(m * sizeof(link_t *));57 h->entry = malloc(m * sizeof(link_t)); 58 58 if (!h->entry) { 59 59 printf("cannot allocate memory for hash table\n"); 60 60 return false; 61 61 } 62 memset((void *) h->entry, 0, m * sizeof(link_t *));62 memset((void *) h->entry, 0, m * sizeof(link_t)); 63 63 64 64 for (i = 0; i < m; i++)
Note:
See TracChangeset
for help on using the changeset viewer.