mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 12:20:09 +01:00
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:
parent
ec982ceb8e
commit
af4a41cc4c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue