fixes memset in aubio_priv.h, remove useless sfinfo.format=0
authorPaul Brossier <piem@altern.org>
Sat, 27 May 2006 01:00:08 +0000 (01:00 +0000)
committerPaul Brossier <piem@altern.org>
Sat, 27 May 2006 01:00:08 +0000 (01:00 +0000)
fixes memset in aubio_priv.h, remove useless sfinfo.format=0

ext/sndfileio.c
src/aubio_priv.h

index 9ff3b80..edafd2b 100644 (file)
@@ -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);
 
index ee3977f..5da6013 100644 (file)
@@ -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)