Skip to content

Commit

Permalink
Calling exit from library code is icky. Closes issue mborgerding#49
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerding committed Jul 14, 2020
1 parent c524b0b commit b2e0e60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/kiss_fftr.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void kiss_fftr(kiss_fftr_cfg st,const kiss_fft_scalar *timedata,kiss_fft_cpx *fr

if ( st->substate->inverse) {
KISS_FFT_ERROR("kiss fft usage error: improper alloc");
exit(1);
return;/* The caller did not call the correct function */
}

ncfft = st->substate->nfft;
Expand Down Expand Up @@ -123,7 +123,7 @@ void kiss_fftri(kiss_fftr_cfg st,const kiss_fft_cpx *freqdata,kiss_fft_scalar *t

if (st->substate->inverse == 0) {
KISS_FFT_ERROR("kiss fft usage error: improper alloc");
exit (1);
return;/* The caller did not call the correct function */
}

ncfft = st->substate->nfft;
Expand Down

0 comments on commit b2e0e60

Please sign in to comment.