1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-09-27 06:05:30 +00:00

ofono: correct variant format confusion

this fixes the crash observed when starting the modem (#248)
This commit is contained in:
anteater 2021-04-11 02:43:58 +00:00
parent edc1089224
commit a4851c4fdc

View file

@ -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);
} }