fix return value from Route::save_as_template()

This commit is contained in:
Paul Davis 2015-11-13 16:12:53 -05:00
parent 024adf3a4d
commit f5e71fd817

View 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());
}