diff options
author | Carl Hetherington <carl@carlh.net> | 2011-12-30 20:05:40 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-12-30 20:05:40 +0000 |
commit | 2c23ff8ceb51297aee7ae71d96e9b61dc9089343 (patch) | |
tree | 198e0e4b5f43af2c54cb7906bad7b09482512119 /libs/ardour/tempo.cc | |
parent | ccc93c4aef54a29d0a85a3fae098e47c2d6e671d (diff) |
Add assert.
git-svn-id: svn://localhost/ardour2/branches/3.0@11119 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/tempo.cc')
-rw-r--r-- | libs/ardour/tempo.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc index d6e33b6b44..d96c712c16 100644 --- a/libs/ardour/tempo.cc +++ b/libs/ardour/tempo.cc @@ -2430,7 +2430,7 @@ Evoral::MusicalTime TempoMap::framewalk_to_beats (framepos_t pos, framecnt_t distance) const { Metrics::const_iterator i; - const TempoSection* tempo; + const TempoSection* tempo = 0; /* Find the starting tempo */ @@ -2447,6 +2447,8 @@ TempoMap::framewalk_to_beats (framepos_t pos, framecnt_t distance) const } } + assert (tempo); + /* We now have: tempo -> the Tempo for "pos" |