ofono: correct variant format confusion
this fixes the crash observed when starting the modem (#248)
This commit is contained in:
@@ -210,6 +210,9 @@ modem_property_changed_cb (GDBOModem *modem,
|
|||||||
modem_name = g_object_get_data (G_OBJECT (modem),
|
modem_name = g_object_get_data (G_OBJECT (modem),
|
||||||
"calls-modem-name");
|
"calls-modem-name");
|
||||||
|
|
||||||
|
/* PropertyChanged gives us a variant gvariant containing a string array,
|
||||||
|
but modem_check_ifaces expects the inner string array gvariant */
|
||||||
|
value = g_variant_get_variant(value);
|
||||||
modem_check_ifaces (self, modem, modem_name, value);
|
modem_check_ifaces (self, modem, modem_name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user