finally added the change to kiss_fft.c to check for mem == NULL

was not a bug, but enough people thought it was that I went ahead and changed it.
This commit is contained in:
Mark Borgerding 2005-12-23 01:33:18 +00:00
parent 445b215619
commit 77968cd25d
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
KFVER=1_2_3
KFVER=1_2_4
DISTDIR=kiss_fft_v$(KFVER)
TARBALL=kiss_fft_v$(KFVER).tar.gz

View File

@ -329,7 +329,7 @@ kiss_fft_cfg kiss_fft_alloc(int nfft,int inverse_fft,void * mem,size_t * lenmem
if ( lenmem==NULL ) {
st = ( kiss_fft_cfg)KISS_FFT_MALLOC( memneeded );
}else{
if (*lenmem >= memneeded)
if (mem != NULL && *lenmem >= memneeded)
st = (kiss_fft_cfg)mem;
*lenmem = memneeded;
}