diff options
author | Thomas Haller <thaller@redhat.com> | 2019-07-11 12:24:52 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-07-16 12:35:36 +0200 |
commit | a33e602a239c6109d3521891b24572fff6f117e7 (patch) | |
tree | 96428b53033b7e5ad7d3f2026fed8be9f73e3298 | |
parent | 355390fad46ab69ca6a632739aba6d1c5a618237 (diff) | |
download | NetworkManager-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.c | 3 |
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, |