diff --git a/wdsp/cfcomp.cpp b/wdsp/cfcomp.cpp index 64a9e3157..ea6efd4db 100644 --- a/wdsp/cfcomp.cpp +++ b/wdsp/cfcomp.cpp @@ -437,7 +437,7 @@ void CFCOMP::SetCFCOMPPosition (TXA& txa, int pos) void CFCOMP::SetCFCOMPprofile (TXA& txa, int nfreqs, float* F, float* G, float *E) { CFCOMP *a = txa.cfcomp.p; - a->nfreqs = nfreqs; + a->nfreqs = nfreqs < 1 ? 1 : nfreqs; delete[] (a->E); delete[] (a->F); delete[] (a->G);