cinterion: fix propagating NULL GError

(ModemManager:2925): GLib-CRITICAL **: 09:21:32.082: g_propagate_error: assertion 'src != NULL' failed
  (ModemManager:2925): GLib-GIO-CRITICAL **: 09:21:32.083: g_task_return_error: assertion 'error != NULL' failed`

Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/916
This commit is contained in:
Aleksander Morgado
2024-10-17 09:11:11 +00:00
parent edd9cc2e95
commit 7ec338dafe
@@ -571,8 +571,8 @@ mm_cinterion_parse_scfg_sim_response (const gchar *response,
}
if (!mm_get_uint_from_match_info (match_info, 1, active_slot)) {
g_prefix_error (&inner_error, "Could not parse SIM slot index: ");
g_propagate_error (error, inner_error);
g_set_error (error, MM_CORE_ERROR, MM_CORE_ERROR_FAILED,
"Could not parse SIM slot index in ^SCFG response");
return FALSE;
}