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