[gnome-software/gnome-3-30] fwupd: Use g_steal_pointer() to make ownership transfer more obvious
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-30] fwupd: Use g_steal_pointer() to make ownership transfer more obvious
- Date: Fri, 14 Sep 2018 14:28:33 +0000 (UTC)
commit a8a7c0f481a9113e08cd296f892255a8f20c253c
Author: Philip Withnall <withnall endlessm com>
Date: Tue Aug 7 13:31:36 2018 +0100
fwupd: Use g_steal_pointer() to make ownership transfer more obvious
This introduces no functional changes, but does clarify the code a
little.
Signed-off-by: Philip Withnall <withnall endlessm com>
plugins/fwupd/gs-plugin-fwupd.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/plugins/fwupd/gs-plugin-fwupd.c b/plugins/fwupd/gs-plugin-fwupd.c
index c696a7c4..e7b86778 100644
--- a/plugins/fwupd/gs-plugin-fwupd.c
+++ b/plugins/fwupd/gs-plugin-fwupd.c
@@ -495,8 +495,7 @@ gs_plugin_add_updates_historical (GsPlugin *plugin,
FWUPD_ERROR,
FWUPD_ERROR_NOT_FOUND))
return TRUE;
- g_propagate_error (error, error_local);
- error_local = NULL;
+ g_propagate_error (error, g_steal_pointer (&error_local));
gs_plugin_fwupd_error_convert (error);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]