iir_parse_n(): fix silly bug
Fixed a silly bug that caused iir_parse_n() to fail for n>1.
This commit is contained in:
parent
bc383a92da
commit
4c0680fb02
|
@ -382,7 +382,7 @@ iir_parse_n(const char* desc, int n)
|
||||||
|
|
||||||
a = malloc(sizeof(struct iir_filter_t*) * n);
|
a = malloc(sizeof(struct iir_filter_t*) * n);
|
||||||
a[0] = fi;
|
a[0] = fi;
|
||||||
for(i = 1; i < n; ++i) a[n] = iir_filter_copy(fi, 0);
|
for(i = 1; i < n; ++i) a[i] = iir_filter_copy(fi, 0);
|
||||||
|
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue