[epiphany/pgriffis/web-extension-alarms: 3/10] WebExtensions: Fix error in json usage
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/pgriffis/web-extension-alarms: 3/10] WebExtensions: Fix error in json usage
- Date: Mon, 30 May 2022 17:20:03 +0000 (UTC)
commit f8a7ba1c96633230d3b596d1484649cdf38c524b
Author: Patrick Griffis <pgriffis igalia com>
Date: Thu May 26 21:35:38 2022 -0500
WebExtensions: Fix error in json usage
Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1120>
src/webextension/api/storage.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/webextension/api/storage.c b/src/webextension/api/storage.c
index 89dfb1cd4..54b4a8bb1 100644
--- a/src/webextension/api/storage.c
+++ b/src/webextension/api/storage.c
@@ -94,7 +94,6 @@ storage_handler_local_get (EphyWebExtension *self,
JsonNode *local_storage = ephy_web_extension_get_local_storage (self);
JsonObject *local_storage_obj = json_node_get_object (local_storage);
g_autoptr (JsonBuilder) builder = NULL;
- g_autoptr (JsonNode) root = NULL;
g_auto (GStrv) keys = NULL;
g_autoptr (JSCValue) value = jsc_value_object_get_property_at_index (args, 0);
@@ -142,8 +141,7 @@ storage_handler_local_get (EphyWebExtension *self,
end_get:
json_builder_end_object (builder);
- root = json_builder_get_root (builder);
- return json_to_string (root, FALSE);
+ return json_to_string (json_builder_get_root (builder), FALSE);
}
static char *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]