From 2c23ff8ceb51297aee7ae71d96e9b61dc9089343 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 30 Dec 2011 20:05:40 +0000 Subject: [PATCH] Add assert. git-svn-id: svn://localhost/ardour2/branches/3.0@11119 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/tempo.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"