From: Paul Brossier Date: Sat, 27 May 2006 01:00:08 +0000 (+0000) Subject: fixes memset in aubio_priv.h, remove useless sfinfo.format=0 X-Git-Tag: bzr2git~665 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3901714a5821f99ccfd08cdb1d95f5bf3a6d5be8;p=aubio.git fixes memset in aubio_priv.h, remove useless sfinfo.format=0 fixes memset in aubio_priv.h, remove useless sfinfo.format=0 --- diff --git a/ext/sndfileio.c b/ext/sndfileio.c index 9ff3b804..edafd2b4 100644 --- a/ext/sndfileio.c +++ b/ext/sndfileio.c @@ -42,7 +42,6 @@ aubio_sndfile_t * new_aubio_sndfile_ro(const char* outputname) { aubio_sndfile_t * f = AUBIO_NEW(aubio_sndfile_t); SF_INFO sfinfo; AUBIO_MEMSET(&sfinfo, 0, sizeof (sfinfo)); - sfinfo.format = 0; f->handle = sf_open (outputname, SFM_READ, &sfinfo); diff --git a/src/aubio_priv.h b/src/aubio_priv.h index ee3977f1..5da60133 100644 --- a/src/aubio_priv.h +++ b/src/aubio_priv.h @@ -83,7 +83,7 @@ extern cca_client_t * aubio_cca_client; #define AUBIO_NEW(_t) (_t*)malloc(sizeof(_t)) #define AUBIO_ARRAY(_t,_n) (_t*)malloc((_n)*sizeof(_t)) #define AUBIO_MEMCPY(_dst,_src,_n) memcpy(_dst,_src,_n) -#define AUBIO_MEMSET(_dst,_src,_t) memset(_dst,_src,sizeof(_t)) +#define AUBIO_MEMSET(_dst,_src,_t) memset(_dst,_src,_t) #define AUBIO_FREE(_p) free(_p)