aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-11-21 15:04:55 +0100
committerAleksander Morgado <aleksander@aleksander.es>2021-11-21 15:18:27 +0100
commitafb213ac05aa72db010e17e0326408bf655f66fd (patch)
tree74592e4b6f29ba366266d7184bad9412c0e898b6
parent647a438b435e9dc21c123602b4be758515c51c57 (diff)
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.
-rw-r--r--src/mm-bearer-mbim.c2
1 files changed, 1 insertions, 1 deletions
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);