Fix segfault due to uninitialised variable

git-svn-id: svn://localhost/ardour2/trunk@2299 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2007-08-14 10:49:29 +00:00
parent e0eb5fd335
commit 4bd83a409e

View file

@ -45,7 +45,7 @@ struct ControlEvent {
}
ControlEvent (const ControlEvent& other)
: when (other.when), value (other.value) {
: when (other.when), value (other.value), coeff (0) {
if (other.coeff) {
create_coeffs();
for (size_t i=0; i < 4; ++i)