platform: fix "maybe-uninitialized" warning in nmp_global_tracker_sync()

Fixes: 3a8864a585 ('platform: delete conflicting route/rule during nmp_global_tracker_sync()')
This commit is contained in:
Thomas Haller 2022-08-11 13:46:00 +02:00
parent 003eb75eb6
commit cbf7b3546b
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -1070,7 +1070,8 @@ nmp_global_tracker_sync(NMPGlobalTracker *self, NMPObjectType obj_type, gboolean
NM_PLATFORM_IP_ROUTE_CMP_TYPE_SEMANTICALLY);
break;
default:
nm_assert_not_reached();
c = nm_assert_unreachable_val(0);
break;
}
if (c == 0)
continue;