about summary refs log tree commit diff
path: root/src/core/nm-dbus-object.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2021-10-01 23:06:08 +0200
committerMichael Biebl <biebl@debian.org>2021-10-01 23:06:08 +0200
commita3349a04ac4c38885cddefec8515c979d03f9327 (patch)
treed3bbee695aa048cb4ec252e7d63515c8376f9006 /src/core/nm-dbus-object.c
parent2d5b58e374d67f60880c7689e80c7745aeef3f62 (diff)
parente74c568b07b50b97873fb4ee1d776dedefbd54d6 (diff)
Update upstream source from tag 'upstream/1.32.12'
Update to upstream version '1.32.12'
with Debian dir 6fabefa95c7dcf83371a78eb2c47013a81ff8d86
Diffstat (limited to 'src/core/nm-dbus-object.c')
-rw-r--r--src/core/nm-dbus-object.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/nm-dbus-object.c b/src/core/nm-dbus-object.c
index 6f294fe2..04149739 100644
--- a/src/core/nm-dbus-object.c
+++ b/src/core/nm-dbus-object.c
@@ -183,23 +183,25 @@ nm_dbus_object_unexport_on_idle(gpointer /* (NMDBusObject *) */ self_take)
 
 /*****************************************************************************/
 
-void
+gboolean
 _nm_dbus_object_clear_and_unexport(NMDBusObject **location)
 {
     NMDBusObject *self;
 
-    g_return_if_fail(location);
+    g_return_val_if_fail(location, FALSE);
+
     if (!*location)
-        return;
+        return FALSE;
 
     self = g_steal_pointer(location);
 
-    g_return_if_fail(NM_IS_DBUS_OBJECT(self));
+    g_return_val_if_fail(NM_IS_DBUS_OBJECT(self), FALSE);
 
     if (self->internal.path)
         nm_dbus_object_unexport(self);
 
     g_object_unref(self);
+    return TRUE;
 }
 
 /*****************************************************************************/