[epiphany/pgriffis/web-extension/runtime-send-message: 15/15] WebExtensions: Fix missing default value on autofree
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/pgriffis/web-extension/runtime-send-message: 15/15] WebExtensions: Fix missing default value on autofree
- Date: Thu, 2 Jun 2022 20:32:48 +0000 (UTC)
commit 5226aec6bdb364e629d859ba035a0e8e71d2405b
Author: Patrick Griffis <pgriffis igalia com>
Date: Thu Jun 2 13:42:43 2022 -0500
WebExtensions: Fix missing default value on autofree
Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1122>
embed/web-process-extension/ephy-webextension-api.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/embed/web-process-extension/ephy-webextension-api.c
b/embed/web-process-extension/ephy-webextension-api.c
index a9f4d0261..d8350fdc6 100644
--- a/embed/web-process-extension/ephy-webextension-api.c
+++ b/embed/web-process-extension/ephy-webextension-api.c
@@ -206,7 +206,7 @@ ephy_send_message (const char *function_name,
EphyWebExtensionExtension *extension = ephy_web_extension_extension_get ();
guint page_id = GPOINTER_TO_UINT (user_data);
WebKitUserMessage *message;
- g_autofree char *args_json;
+ g_autofree char *args_json = NULL;
if (!jsc_value_is_function (reject_callback))
return; /* Can't reject in this case. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]