Changeset 7ce0701 for src


Ignore:
Timestamp:
Nov 17, 2011, 2:07:12 AM (12 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
1c24da5
Parents:
c55f907
Message:

src/aubio_priv.h: use calloc instead of malloc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/aubio_priv.h

    rc55f907 r7ce0701  
    8282#define AUBIO_MALLOC(_n)             malloc(_n)
    8383#define AUBIO_REALLOC(_p,_n)         realloc(_p,_n)
    84 #define AUBIO_NEW(_t)                (_t*)malloc(sizeof(_t))
    85 #define AUBIO_ARRAY(_t,_n)           (_t*)malloc((_n)*sizeof(_t))
     84#define AUBIO_NEW(_t)                (_t*)calloc(sizeof(_t), 1)
     85#define AUBIO_ARRAY(_t,_n)           (_t*)calloc((_n)*sizeof(_t), 1)
    8686#define AUBIO_MEMCPY(_dst,_src,_n)   memcpy(_dst,_src,_n)
    8787#define AUBIO_MEMSET(_dst,_src,_t)   memset(_dst,_src,_t)
Note: See TracChangeset for help on using the changeset viewer.