cinterion: don't assume GError structure always initialized

GError structure may not be initialized after execution of
mm_3gpp_parse_cgdcont_read_response() and accessing it's
fields will cause a segmentation fault.
This commit is contained in:
Kirill Buksha
2023-03-15 11:02:36 +00:00
committed by Aleksander Morgado
parent 6058d3ded6
commit c463807494
@@ -1586,7 +1586,10 @@ common_load_initial_eps_cgdcont_ready (MMBaseModem *_self,
context_list = mm_3gpp_parse_cgdcont_read_response (response, &error);
if (!context_list)
mm_obj_dbg (self, "couldn't parse CGDCONT response: %s", error->message);
if (error)
mm_obj_dbg (self, "couldn't parse CGDCONT response: %s", error->message);
else
mm_obj_dbg (self, "No PDP contexts found.");
else {
GList *l;