[gnome-software] fwupd: Use g_steal_pointer() to make ownership transfer more obvious
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] fwupd: Use g_steal_pointer() to make ownership transfer more obvious
- Date: Tue, 7 Aug 2018 15:48:25 +0000 (UTC)
commit 64453007b73e3fa9348674da863b0352b3193836
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 1563f006..177548b4 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]