From a4851c4fdc515b6055b0a46c9fd4634d741053e2 Mon Sep 17 00:00:00 2001 From: anteater Date: Sun, 11 Apr 2021 02:43:58 +0000 Subject: [PATCH] ofono: correct variant format confusion this fixes the crash observed when starting the modem (#248) --- plugins/ofono/calls-ofono-provider.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/ofono/calls-ofono-provider.c b/plugins/ofono/calls-ofono-provider.c index 8bc3942..e6b0ba4 100644 --- a/plugins/ofono/calls-ofono-provider.c +++ b/plugins/ofono/calls-ofono-provider.c @@ -210,6 +210,9 @@ modem_property_changed_cb (GDBOModem *modem, modem_name = g_object_get_data (G_OBJECT (modem), "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); }