From ddfd1e8ddf02a4b0b02ca08a1ee55584c4373d0e Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 24 Sep 2021 18:02:48 +0200 Subject: [PATCH] device: minor cleanup in reapply_cb() --- src/core/devices/nm-device.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/devices/nm-device.c b/src/core/devices/nm-device.c index ef835a2b8b..7faec23c8e 100644 --- a/src/core/devices/nm-device.c +++ b/src/core/devices/nm-device.c @@ -12914,12 +12914,12 @@ reapply_cb(NMDevice * self, audit_args, subject, local->message); - g_dbus_method_invocation_take_error(context, local); - local = NULL; - } else { - nm_audit_log_device_op(NM_AUDIT_OP_DEVICE_REAPPLY, self, TRUE, audit_args, subject, NULL); - g_dbus_method_invocation_return_value(context, NULL); + g_dbus_method_invocation_take_error(context, g_steal_pointer(&local)); + return; } + + nm_audit_log_device_op(NM_AUDIT_OP_DEVICE_REAPPLY, self, TRUE, audit_args, subject, NULL); + g_dbus_method_invocation_return_value(context, NULL); } static void