Branch: Tag:

2014-04-27

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

More calloc conversions.

77:    int cutoff )   {    int i, j, k, end = 0; -  Hit *hits = malloc( nblobs * sizeof(Hit) ); +  Hit *hits = calloc( nblobs, sizeof(Hit) );    unsigned char *nhits = malloc( nblobs );    unsigned char *pos = malloc( nblobs );       int matrix[65][8];       MEMSET(matrix, 0, sizeof(matrix) ); -  MEMSET(hits, 0, nblobs * sizeof(Hit) ); -  MEMSET(pos, 0, nblobs ); +        for( i = 0; i<nblobs; i++ )    nhits[i] = wf_blob_nhits( blobs[i] );