Branch: Tag:

2014-11-02

2014-11-02 23:42:18 by Martin Nilsson <nilsson@opera.com>

Changed some malloc to calloc.

135:    ONERROR e;    int i, j;    Blob **tmp; -  tmp = malloc( nblobs * sizeof( Blob *) ); +  tmp = calloc( nblobs, sizeof( Blob *) );       __f->res = res;    __f->blobs = blobs;
425:    return;    }    -  blobs = malloc( sizeof(Blob *) * numblobs ); +  blobs = calloc( numblobs, sizeof(Blob *) );       for( i = 0; i<numblobs; i++ )    blobs[i] = wf_blob_new( cb, _words->item[i].u.string );
519:    return;    }    -  blobs = malloc( sizeof(Blob *) * numblobs ); +  blobs = calloc( numblobs, sizeof(Blob *) );       for( i = 0; i<numblobs; i++ )    blobs[i] = wf_blob_new( cb, _words->item[i].u.string );
620:    return;    }    -  blobs = malloc( sizeof(Blob *) * numblobs ); +  blobs = calloc( numblobs, sizeof(Blob *) );       for( i = 0; i<numblobs; i++ )    blobs[i] = wf_blob_new( cb, _words->item[i].u.string );