Branch: Tag:

2014-04-27

2014-04-27 19:22:46 by Martin Nilsson <nilsson@opera.com>

More calloc conversions.

613:       SET_HSIZE( ++hashprimes_entry );    -  base_table=(struct pike_string **)xalloc(sizeof(struct pike_string *)*htable_size); -  MEMSET((char *)base_table,0,sizeof(struct pike_string *)*htable_size); +  base_table=xcalloc(sizeof(struct pike_string *), htable_size);       need_more_hash_prefix_depth = 0;   
2225:   {    for(hashprimes_entry=0;hashprimes[hashprimes_entry]<BEGIN_HASH_SIZE;hashprimes_entry++);    SET_HSIZE(hashprimes_entry); -  base_table=(struct pike_string **)xalloc(sizeof(struct pike_string *)*htable_size); -  MEMSET((char *)base_table,0,sizeof(struct pike_string *)*htable_size); +  base_table=xcalloc(sizeof(struct pike_string *), htable_size); +    #ifdef PIKE_RUN_UNLOCKED    {    int h;