From 5d7e4d0b085f7653824576404eab64c0c51b6ac1 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 11 Dec 2018 16:52:06 +0000 Subject: [PATCH] lib: Fix GVariant text format for default property value It was a string in GVariant text format, not a GVariant format string, so should have been passed to the parse function. Signed-off-by: Philip Withnall https://phabricator.endlessm.com/T24004 --- libeos-parental-controls/app-filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libeos-parental-controls/app-filter.c b/libeos-parental-controls/app-filter.c index 7bf08a7..e2f686e 100644 --- a/libeos-parental-controls/app-filter.c +++ b/libeos-parental-controls/app-filter.c @@ -648,7 +648,7 @@ epc_get_app_filter (GDBusConnection *connection, { /* Default value. */ content_rating_kind = "oars-1.1"; - oars_variant = g_variant_new ("@a{ss} {}"); + oars_variant = g_variant_new_parsed ("@a{ss} {}"); } /* Check that the OARS filter is in a format we support. Currently, that’s