mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 20:40:21 +01:00
l3cfg: fix assertion in NM_IS_L3_CONFIG_DATA() to allow NULL
This commit is contained in:
parent
882168c728
commit
0d4840c484
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ NM_IS_L3_CONFIG_DATA(const NML3ConfigData *self)
|
|||
*
|
||||
* Additionally, also call nm_l3_config_data_get_ifindex(), which does more
|
||||
* checks during nm_assert(). */
|
||||
nm_assert(nm_l3_config_data_get_ifindex(self) > 0);
|
||||
nm_assert(!self || nm_l3_config_data_get_ifindex(self) > 0);
|
||||
return !!self;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue