diff --git a/src/maths/cmaths/cmath2.c b/src/maths/cmaths/cmath2.c index cc1b0fc6b..fef403dac 100644 --- a/src/maths/cmaths/cmath2.c +++ b/src/maths/cmaths/cmath2.c @@ -251,7 +251,7 @@ void *cx_avg(void *data, short int type, int length, int *newlength, short int *newtype, ...) { complex *c; - double *d, sum_real = 0.0,sum_imag = 0.0; + double *d = NULL, sum_real = 0.0,sum_imag = 0.0; complex *cc = (complex *) data; double *dd = (double *) data; int i;