From fc41ae3ac6351de352c0313c25af27c23249fb40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20=C5=A0imerda?= Date: Tue, 5 Mar 2013 01:15:30 +0100 Subject: [PATCH] ip6: use assert for fatal errors during initialization --- src/ip6-manager/nm-ip6-manager.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ip6-manager/nm-ip6-manager.c b/src/ip6-manager/nm-ip6-manager.c index 637128f39d..59816e7648 100644 --- a/src/ip6-manager/nm-ip6-manager.c +++ b/src/ip6-manager/nm-ip6-manager.c @@ -1617,10 +1617,12 @@ nm_ip6_manager_init (NMIP6Manager *manager) G_CALLBACK (netlink_notification), manager); priv->nlh = nm_netlink_get_default_handle (); + g_assert (priv->nlh); rtnl_addr_alloc_cache (priv->nlh, &priv->addr_cache); - g_warn_if_fail (priv->addr_cache != NULL); + g_assert (priv->addr_cache); rtnl_route_alloc_cache (priv->nlh, NETLINK_ROUTE, NL_AUTO_PROVIDE, &priv->route_cache); - g_warn_if_fail (priv->route_cache != NULL); + g_assert (priv->route_cache); + } static void