From f5e71fd817248c1c1123590951fb9837c3c4f7eb Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 13 Nov 2015 16:12:53 -0500 Subject: [PATCH] fix return value from Route::save_as_template() --- libs/ardour/route.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 62d97c79d3..65f4531ac8 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -4130,7 +4130,8 @@ Route::save_as_template (const string& path, const string& name) IO::set_name_in_state (*node.children().front(), name); tree.set_root (&node); - return tree.write (path.c_str()); + /* return zero on success, non-zero otherwise */ + return !tree.write (path.c_str()); }