diff options
author | David Robillard <d@drobilla.net> | 2007-03-18 06:07:08 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-03-18 06:07:08 +0000 |
commit | 99904735e066804358f1d0bd138a84f1e9ecda91 (patch) | |
tree | 71a924cf1660b5b00231275bd481bbd27094dd9b /libs/ardour/region.cc | |
parent | eb270e70a12c410cdd98585ad25bb6d8e384a4f5 (diff) |
Merged with trunk R1612.
git-svn-id: svn://localhost/ardour2/branches/midi@1614 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r-- | libs/ardour/region.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index 973e14fd31..15609706b2 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -15,7 +15,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id$ */ #include <iostream> @@ -888,7 +887,7 @@ Region::state (bool full_state) { XMLNode *node = new XMLNode ("Region"); char buf[64]; - char* fe; + char* fe = NULL; _id.print (buf, sizeof (buf)); node->add_property ("id", buf); @@ -911,6 +910,10 @@ Region::state (bool full_state) case EditChangesID: fe = X_("id"); break; + default: /* should be unreachable but makes g++ happy */ + cerr << "Odd region property found\n"; + fe = X_("nothing"); + break; } node->add_property ("first_edit", fe); |