fix return value from Route::save_as_template()
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user