fix reversed logic in test of Delivery::set_name()

Note that the Delivery::set_name() method worked correctly, but
the Route::set_name() method would return false incorrectly. This
appears to have no consequences.
This commit is contained in:
Paul Davis 2024-06-01 07:56:37 -06:00
parent 0a19b719d4
commit 949b4d4017

View File

@ -4756,7 +4756,7 @@ Route::set_name (const string& str)
*/
if (_main_outs) {
if (_main_outs->set_name (newname)) {
if (!_main_outs->set_name (newname)) {
/* XXX returning false here is stupid because
we already changed the route name.
*/