summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-07-11 12:24:52 +0200
committerThomas Haller <thaller@redhat.com>2019-07-16 12:35:36 +0200
commita33e602a239c6109d3521891b24572fff6f117e7 (patch)
tree96428b53033b7e5ad7d3f2026fed8be9f73e3298
parent355390fad46ab69ca6a632739aba6d1c5a618237 (diff)
downloadNetworkManager-a33e602a239c6109d3521891b24572fff6f117e7.tar.gz
libnm: accept %NULL argument in nmtst_connection_assert_unchanging()
It's just more convenient, as it saves us the %NULL check.
-rw-r--r--libnm-core/nm-connection.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libnm-core/nm-connection.c b/libnm-core/nm-connection.c
index 615faae7d1..2532b64a35 100644
--- a/libnm-core/nm-connection.c
+++ b/libnm-core/nm-connection.c
@@ -1811,6 +1811,9 @@ const char _nmtst_connection_unchanging_user_data = 0;
void
nmtst_connection_assert_unchanging (NMConnection *connection)
{
+ if (!connection)
+ return;
+
nm_assert (NM_IS_CONNECTION (connection));
if (g_signal_handler_find (connection,