projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
024adf3
)
fix return value from Route::save_as_template()
author
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 13 Nov 2015 21:12:53 +0000
(16:12 -0500)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 13 Nov 2015 21:14:49 +0000
(16:14 -0500)
libs/ardour/route.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/route.cc
b/libs/ardour/route.cc
index 62d97c79d37a4bc3b97af110558fb90632f4febf..65f4531ac88e7cd158c2538b322ffc5380eb2d5c 100644
(file)
--- 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());
}