cli: fix type for loop variable in _get_fcn_vlan_xgress_priority_map()

Coverity correctly points out that nm_setting_vlan_get_num_priorities() can return
a negative value (-1 on assertion). Handle that by using the right integer type.
This commit is contained in:
Thomas Haller 2019-08-02 08:44:12 +02:00
parent ec982ceb8e
commit af4a41cc4c

View file

@ -3755,7 +3755,7 @@ _get_fcn_vlan_xgress_priority_map (ARGS_GET_FCN)
NMVlanPriorityMap map_type = _vlan_priority_map_type_from_property_info (property_info);
NMSettingVlan *s_vlan = NM_SETTING_VLAN (setting);
GString *str = NULL;
guint32 i, num;
gint32 i, num;
RETURN_UNSUPPORTED_GET_TYPE ();