1
1

Fixed initialization of new hash node

This commit was SVN r21605.
Этот коммит содержится в:
Matthias Jurenz 2009-07-06 14:03:01 +00:00
родитель b4026c40ad
Коммит 03f94ae066

Просмотреть файл

@ -36,9 +36,13 @@ static mapInfoProcessT *search_inner( mapInfoProcessT *current, uint32_t process
mapInfoProcessT *hash_new( )
{
mapInfoProcessT *ret;
int i;
ret = (mapInfoProcessT*)calloc( HASH_SIZE, sizeof(mapInfoProcessT) );
ret->process = (uint32_t)-1;
for( i = 0; i < HASH_SIZE; i++)
{
ret[i].process = (uint32_t)-1;
}
return ret;
}