From afb213ac05aa72db010e17e0326408bf655f66fd Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sun, 21 Nov 2021 15:04:55 +0100 Subject: [PATCH] bearer-mbim: fix error handling in connection status reload We should not set the GError as autoptr(), as we're returning it as part of the GTask. --- src/mm-bearer-mbim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mm-bearer-mbim.c b/src/mm-bearer-mbim.c index b5b3a8c6..84f4e3da 100644 --- a/src/mm-bearer-mbim.c +++ b/src/mm-bearer-mbim.c @@ -1592,8 +1592,8 @@ reload_connection_status_ready (MbimDevice *device, guint32 session_id; MbimActivationState activation_state; MMBearerConnectionStatus bearer_connection_status = MM_BEARER_CONNECTION_STATUS_UNKNOWN; + GError *error = NULL; g_autoptr(MbimMessage) response = NULL; - g_autoptr(GError) error = NULL; self = g_task_get_source_object (task);