mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 19:50:14 +01:00
nm-dhcp-client: use nm_assert() to check ifname
so that it gets compiled out in production builds, this check is carried out anyway when the connection is created.
This commit is contained in:
parent
439ac7f7c2
commit
9e27252c27
1 changed files with 2 additions and 2 deletions
|
|
@ -1010,8 +1010,8 @@ set_property (GObject *object, guint prop_id,
|
|||
case PROP_IFACE:
|
||||
/* construct-only */
|
||||
priv->iface = g_value_dup_string (value);
|
||||
g_return_if_fail ( priv->iface
|
||||
&& nm_utils_is_valid_iface_name (priv->iface, NULL));
|
||||
g_return_if_fail (priv->iface);
|
||||
nm_assert (nm_utils_is_valid_iface_name (priv->iface, NULL));
|
||||
break;
|
||||
case PROP_IFINDEX:
|
||||
/* construct-only */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue