mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-05-27 13:10:26 -04:00
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:
parent
445b215619
commit
77968cd25d
2
Makefile
2
Makefile
@ -1,4 +1,4 @@
|
||||
KFVER=1_2_3
|
||||
KFVER=1_2_4
|
||||
|
||||
DISTDIR=kiss_fft_v$(KFVER)
|
||||
TARBALL=kiss_fft_v$(KFVER).tar.gz
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user