From 9e27252c27c11a12e63ca322494cf96a5d259eb1 Mon Sep 17 00:00:00 2001 From: Antonio Cardace Date: Wed, 12 Feb 2020 17:04:46 +0100 Subject: [PATCH] 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. --- src/dhcp/nm-dhcp-client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dhcp/nm-dhcp-client.c b/src/dhcp/nm-dhcp-client.c index 5cc0472c00..7f3c41bf6f 100644 --- a/src/dhcp/nm-dhcp-client.c +++ b/src/dhcp/nm-dhcp-client.c @@ -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 */