diff options
author | Carl Hetherington <carl@carlh.net> | 2007-10-23 14:02:15 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2007-10-23 14:02:15 +0000 |
commit | fc9ab1ccbdfc4ae8bdec962e4c9439c1fc59a55f (patch) | |
tree | 1b9436b1519761692639212ed25aca63dbd97859 /libs/ardour/port.cc | |
parent | 4d33fbac628a695b5c63f7dae1ddaad9e1a5896d (diff) |
Re-work Port construction slightly so that _flags is always initialised before reset() is called. Otherwise a decision is made based on an uninitialised variable (as spotted by valgrind)
git-svn-id: svn://localhost/ardour2/trunk@2568 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/port.cc')
-rw-r--r-- | libs/ardour/port.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/ardour/port.cc b/libs/ardour/port.cc index bfc1eaf279..f65ce9906b 100644 --- a/libs/ardour/port.cc +++ b/libs/ardour/port.cc @@ -22,8 +22,9 @@ using namespace ARDOUR; using namespace std; -Port::Port () - : _metering (0) +Port::Port (Flags flags) + : _flags (flags) + , _metering (0) , _last_monitor (false) { } |