fix return value from Route::save_as_template()
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 13 Nov 2015 21:12:53 +0000 (16:12 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 13 Nov 2015 21:14:49 +0000 (16:14 -0500)
libs/ardour/route.cc

index 62d97c79d37a4bc3b97af110558fb90632f4febf..65f4531ac88e7cd158c2538b322ffc5380eb2d5c 100644 (file)
@@ -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());
 }